Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/rrcmd.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/rrcmd.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/rrcmd.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/rrcmd.html on line 8
Execute a command on a remote host (via a SOCKS server)
int Rrcmd( char ** ahost,
int inport,
const char * locuser,
const char * remuser,
const char * cmd,
int * fd2p );
- ahost
- The name of the host that you want to execute the command on.
If the function can find the host, it sets *ahost to the
standard name of the host.
- inport
- The well-known Internet port on the host, where the server resides.
- locuser
- The user ID on the local machine.
- remuser
- The user ID on the remote machine.
- cmd
- The command that you want to execute.
- fd2p
- See
rcmd().
libsocks
Use the -l socks option to
qcc
to link against this library.
The Rrcmd() function is a cover function for
rcmd() —
the difference is that Rrcmd() does its job via
a SOCKS server.
For more information about SOCKS and its libraries, see the appendix,
SOCKS — A Basic Firewall.
A valid socket descriptor; or -1 if an error occurs and a message is printed to standard error.
SOCKS
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
Raccept(),
Rbind(),
rcmd()
Rconnect(),
Rgetsockname(),
Rlisten(),
Rselect(),
SOCKSinit()
SOCKS — A Basic Firewall
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/rrcmd.html on line 149
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/rrcmd.html on line 149