Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
rsh(1) OSS Shell and Utilities Reference Manual
2. To do the same job, create symbolic link host2 to rsh and enter:
$ host2 df
3. To append a remote file to another file on the remote host, place the >> metacharacters in
"" (double quotes):
$ rsh host2 cat test1 ">>" test2
4. To append a remote file at the remote host to a local file, omit the double quotes:
$ rsh host2 cat test2 >> test3
5. To append a remote file to a local file and use a remote user’s permissions at the remote
host, use the -l flag:
$ rsh host2 -l jane cat test4 >> test5
FILES
/etc/hosts.equiv Specifies remote hosts from which users can execute commands on
the local host (if these users have an account on the local host). This
file can also specify a trusted user for each host.
$HOME/.rhosts Specifies remote hosts from which users can execute commands on
the local host (if these users have an account on the local host). This
file can also specify a trusted user for each host.
NOTES
To remotely access an HP NonStop server from a UNIX system or another NonStop HP server
through that system’s rsh command, you must specify the -l flag. If you omit the -l flag, or if the
target server does not have a login name configured with an INITIAL-DIRECTORY attribute,
the command fails with the message "Connection refused."
RELATED INFORMATION
Commands: rshd(8), telnet(1).
Files: hosts.equiv(4), .rhosts(4).
STANDARDS CONFORMANCE
This command is an HP extension to the XPG4 Version 2 specification.
7−58 Hewlett-Packard Company 527188-003