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(C) 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 rcmd(TC) to run the ls command on the remote machine without logging in to that machine.

You can only use rcmd 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 rcmd command with the name of the other machine and the command that you want to execute remotely:

rcmd seattle ls /usr/local/bin

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

   acctinfo
   bugreport
   calendar94
For examples of other ways to use the rcmd command, see the manual page for rcmd(TC).
Next topic: Accessing shared files
Previous topic: Transferring files

© 2007 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 05 June 2007