|
NAMErcmdsh —
return a stream to a remote command without superuser
SYNOPSIS#include <unistd.h>
int
DESCRIPTIONThercmdsh () 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 rshprog (if
non-NULL ).
The If the connection succeeds, a socket in the
UNIX domain of type
RETURN VALUESThercmdsh () function returns a valid socket descriptor
on success. Otherwise, -1 is returned and a diagnostic message is printed on
the standard error.
SEE ALSOrsh(1), socketpair(2), rcmd(3), rshd(8)HISTORYThercmdsh () function first appeared in
OpenBSD 2.0, and made its way into
FreeBSD 4.6.
BUGSIf rsh(1) encounters an error, a file descriptor is still returned instead of -1.
Visit the GSP FreeBSD Man Page Interface. |