table of contents
other versions
- wheezy 3.44-1
- jessie 3.74-1
- jessie-backports 4.10-2~bpo8+1
- testing 4.10-2
- unstable 4.10-2
other sections
REXEC(3) | Linux Programmer's Manual | REXEC(3) |
NAME¶
rexec, rexec_af - return stream to a remote commandSYNOPSIS¶
#define _BSD_SOURCE /* See feature_test_macros(7) */ #include <netdb.h>int rexec(char **ahost, int inport, char *user, char *passwd, char *cmd, int *fd2p);int rexec_af(char **ahost, int inport, char *user, char *passwd, char *cmd, int *fd2p, sa_family_t af);
DESCRIPTION¶
This interface is obsoleted by rcmd(3).rexec_af()¶
The rexec() function works over IPv4 (AF_INET). By contrast, the rexec_af() function provides an extra argument, af, that allows the caller to select the protocol. This argument can be specified as AF_INET, AF_INET6, or AF_UNSPEC (to allow the implementation to select the protocol).VERSIONS¶
The rexec_af() function was added to glibc in version 2.2.CONFORMING TO¶
These functions are not in POSIX.1-2001. The rexec() function first appeared in 4.2BSD, and is present on the BSDs, Solaris, and many other systems. The rexec_af() function is more recent, and less widespread.BUGS¶
The rexec() function sends the unencrypted password across the network. The underlying service is considered a big security hole and therefore not enabled on many sites; see rexecd(8) for explanations.SEE ALSO¶
rcmd(3), rexecd(8)COLOPHON¶
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/.2012-04-23 | Linux |