rsh—starts a remote shell

rrsshh [--KKddnnxx] [--kk _r_e_a_l_m] [--ll _u_s_e_r_n_a_m_e] _h_o_s_t [command]

rsh connects to the specified hostname and executes the specified command. rsh copies its standard input to the remote command, the standard output of the remote command to its standard output, and the standard error of the remote command to its standard error. Interrupt, quit, and terminate signals are propagated to the remote command; rsh normally terminates when the remote command does. If a command is not given, then rsh logs you on to the remote host using rlogin.

Example A.49.
1  rsh bluebird ps -ef
2  rsh -l john owl ls; echo $PATH;cat .profile
				

Explanation

  1. Connect to machine bluebird and display all processes running on that machine.

  2. Go to the remote machine owl as user john and execute all three commands.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.210.71