Rrcmd()

execute a command on a remote host (via a SOCKS server)

Synopsis:

int Rrcmd( char **ahost, 
           int inport, 
           const char *locuser, 
           const char *remuser, 
           const char *cmd, 
           int *fd2p );

Description:

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 Appendix A: SOCKS - A Basic Firewall.

Returns:

A valid socket descriptor. If an error occurs, -1 is returned and a message is printed to standard error.

Classification:

SOCKS

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

rcmd(), Appendix A: SOCKS - A Basic Firewall.