rex man page on NeXTSTEP

Man page or keyword search:  
man Server   1419 pages
apropos Keyword Search (all sections)
Output format
NeXTSTEP logo
[printable version]


REX(3R)								       REX(3R)

NAME
       rex - remote execution protocol

SYNOPSIS
       #include <sys/ioctl.h>
       #include <rpcsvc/rex.h>

DESCRIPTION
       This  server will execute commands remotely.  the working directory and
       environment of the command can be specified, and the standard input and
       output  of  the	command	 can  be arbitrarily redirected.  An option is
       provided for interactive I/O for programs that expect to be running  on
       terminals.   Note  that	this  service  is  only	 provided with the TCP
       transport.

RPC INFO
       program number:
	    REXPROG
       xdr routines:
	    int xdr_rex_start(xdrs, start);
		 XDR *xdrs;
		 struct rex_start *start;
	    int	 xdr_rex_result(xdrs, result);
		 XDR *xdrs;
		 struct rex_result *result;
	    int xdr_rex_ttymode(xdrs, mode);
		 XDR *xdrs;
		 struct rex_ttymode *mode;
	    int xdr_rex_ttysize(xdrs, size);
		 XDR *xdrs;
		 struct ttysize *size;
       procs:
	    REXPROC_START
		 Takes rex_start structure, starts a command executing,
		 and returns a rex_result structure.
	    REXPROC_WAIT
		 Takes no arguments, waits for a command to finish executing,
		 and returns a rex_result structure.
	    REXPROC_MODES
		 Takes a rex_ttymode structure, and sends the tty modes.
	    REXPROC_WINCH
		 Takes a ttysize structure, and sends window size information.
       versions:
	    REXVERS_ORIG
		 Original version
       structures:
       #define REX_INTERACTIVE	     1	  /* Interative mode */
       struct rex_start {
	      char **rst_cmd;/* list of command and args */
	      char *rst_host;/* working directory host name */
	      char *rst_fsname;/* working directory file system name */
	      char *rst_dirwithin;/* working directory within file system */
	      char **rst_env;/* list of environment */
	      u_short rst_port0;/* port for stdin */
	      u_short rst_port1;/* port for stdin */
	      u_short rst_port2;/* port for stdin */
	      u_long rst_flags;/* options - see #defines above */
       };

       struct rex_result {
	      int rlt_stat;/* integer status code */
	      char *rlt_message;/* string message for human consumption */
       };

       struct rex_ttymode {
	      struct sgttyb basic;/* standard unix tty flags */
	      struct tchars more;/* interrupt, kill characters, etc. */
	      struct ltchars yetmore;/* special Berkeley characters */
	      u_long andmore;/* and Berkeley modes */
       };

SEE ALSO
       on(1C), rexd(8C)

				21 January 1986			       REX(3R)
[top]

List of man pages available for NeXTSTEP

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net