next up previous contents index
Next: rexec Up: remsh Previous: Usage Notes:

Examples:

All the examples below assume that the remote host that you are communicating with is called rzri6f and that you have to set your DISPLAY variable to refer to the window at which you are working. (DISPLAY is discussed in detail in documentation and man pages referring to the X11 window system.)

To get a window with a terminal emulation on your X-server:

 
               		  remsh rzri6f term -display $DISPLAY &

To get a window that emulates a mainframe terminal (3270) on your X-server enter:

 
               		  remsh rzri6f x3270 -display $DISPLAY cernvm  &

or remsh rzri6f 3270 -display $DISPLAY cernvm &

or remsh rzri6f tn3270 -display $DISPLAY cernvm &

The next examples illustrate the I/O redirection mechanism with the remsh command. They are not examples for efficient file transfer.

 
               		  remsh rzri6f cat .profile >> .profile

appends the profile you have on the rzri6f to your local profile.

Find the difference:

 
               		  remsh rzri6f cat .profile ">" .profile.old

Right! Your remote profile will be copied to a remote file named .profile.old.



Alan Silverman
Wed Apr 12 16:54:02 METDST 1995