icon Top 9 categories map      RocketAware > man pages >


Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.

The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Search all pages


By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Integer, Floating point, Matrix, Statistics, Boolean, ...

Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...


RocketLink!--> Man page versions: OpenBSD

RCMDSH(3)                 OpenBSD Programmer's Manual                RCMDSH(3)

     rcmdsh - return a stream to a remote command without superuser

     #include <unistd.h>

     rcmdsh(char **ahost, int inport, const char *locuser,
             const char *remuser, const char *cmd, char *rshprog);

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

     The rcmdsh() function looks up the host *ahost using gethostbyname(3),
     returning -1 if the host does not exist.  Otherwise *ahost is set to the
     standard name of the host and a connection is established to a server re-
     siding at the well-known Internet port shell/tcp (or whatever port is
     used by rshprog ).  The parameter inport 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 and stdout, and stderr.

     The rcmdsh() function returns a valid socket descriptor on success.  It
     returns -1 on error and prints a diagnostic message on the standard er-

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

     If rsh(1) gets an error a file descriptor is still returned instead of

     The rcmdsh() function first appeared in OpenBSD 2.0.

OpenBSD 2.6                    September 1, 1996                             1

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.

(Corrections, notes, and links courtesy of RocketAware.com)

[Detailed Topics]
OpenBSD sources for rcmdsh(3)

[Overview Topics]

Up to: Remote Process Communication - Methods of communicating to remote processes. Remote Procedure Calls, sockets, data format translation, et al

RocketLink!--> Man page versions: OpenBSD

Rapid-Links: Search | About | Comments | Submit Path: RocketAware > man pages > rcmdsh.3/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments