Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rex(3R) — UTek 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

on(1C)

rexd(8C)



REX(3R)                 COMMAND REFERENCE                 REX(3R)



NAME
     rex - remote execution protocol

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

DESCRIPTION
     This server executes 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   /* Interactive mode */
          struct rex_start {
             char **rst_cmd;            /* list of command and args */



Printed 5/12/88                                                 1





REX(3R)                 COMMAND REFERENCE                 REX(3R)



             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).






























Printed 5/12/88                                                 2





































































%%index%%
na:240,83;
sy:323,577;
de:900,1858;3070,1078;
se:4148,149;
%%index%%000000000092

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026