The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

rcmdsh (3)
  • >> rcmdsh (3) ( FreeBSD man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    
    
    rcmdsh
    
     - return a stream to a remote command without superuser
    
     
    

    SYNOPSIS

       #include <unistd.h>
    int Fo rcmdsh Fa char **ahost Fa int inport Fa const char *locuser Fa const char *remuser Fa const char *cmd Fa const char *rshprog Fc  

    DESCRIPTION

    The rcmdsh ();
    function is used by normal users to execute a command on a remote machine using an authentication scheme based on reserved port numbers using rshd(8) or the value of Fa rshprog (if non- NULL

    The rcmdsh ();
    function looks up the host Fa *ahost using gethostbyname(3), returning -1 if the host does not exist. Otherwise Fa *ahost is set to the standard name of the host and a connection is established to a server residing at the well-known Internet port ``shell/tcp '' (or whatever port is used by Fa rshprog ) . The Fa inport argument is ignored; it is only included to provide an interface similar to rcmd(3).

    If the connection succeeds, a socket in the UNIX domain of type SOCK_STREAM is returned to the caller, and given to the remote command as stdin , stdout and stderr  

    RETURN VALUES

    The rcmdsh ();
    function returns a valid socket descriptor on success. Otherwise, -1 is returned and a diagnostic message is printed on the standard error.  

    SEE ALSO

    rsh(1), socketpair(2), rcmd(3), rshd(8)  

    HISTORY

    The rcmdsh ();
    function first appeared in Ox 2.0 , and made its way into Fx 4.6 .  

    BUGS

    If rsh(1) encounters an error, a file descriptor is still returned instead of -1.


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    SEE ALSO
    HISTORY
    BUGS


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру