DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using the network

Running commands remotely

Sometimes you only want to run a simple command on another machine. For example, if you want to use ls(1) to see which programs are in the /usr/local/bin directory on the remote machine seattle, you do not need a telnet terminal session because ls is not an interactive program like the vi editor. Likewise, you do not need the kind of interactive file access ftp provides. Instead, you can use rsh(1tcp) to run the ls command on the remote machine without logging in to that machine.

You can only use rsh if you have user or system equivalence with the remote machine (see ``Access privileges'') and if that machine is running a UNIX operating system. Give the rsh command with the name of the other machine and the command that you want to execute remotely:

rsh seattle ls /usr/local/bin

rsh displays the output from the remote command on your screen:

   acctinfo
   bugreport
   calendar97
   .
   .
   .

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004