Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: General Up: Environment Previous: .prompt

Subsections



.rshexec

Remote execution utility.

Synopsis

rsh remotehost $AIPSROOT/.rshexec [-i] [-e aips_ext] command [options]

Description

.rshexec defines the AIPS++ environment for a process invoked by rsh and then exec's the command with any specified arguments.

Options

-i
Report the command before exec'ing it.

-e aips_ext
Specify an alternative AIPS++ architecture extension, aips_ext (see aipsinit (p[*])).

Examples

To see what the $AIPSPATH environment variable is defined to be on remote host lynx:

   rsh lynx $AIPSROOT/.rshexec echo \''$AIPSPATH'\'

Note here that $AIPSROOT is evaluated on the local machine and it is assumed that it has the same value on the remote machine. Also note that the $AIPSPATH argument is protected by two sets of single quotes, the inner pair prevents the environment variable from being evaluated on the local machine, and the outer pair which is escaped to protect them from the local shell protects the environment variable from being evaluated by the login shell on the remote machine.

See also

The unix manual page for rsh(1).
aipsinit (p[*]), AIPS++ initialization procedure.
.profile (p[*]), aips2mgr's .profile file.
inhale (p[*]), AIPS++ code import utility.

Author

Original: 1993/07/14 by Mark Calabretta, ATNF.


next up previous contents index
Next: General Up: Environment Previous: .prompt   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15