->Title Page
-->File Structure
-->Online Manual
-->Basic Commands
-->Additional Commands
-->Login files
-->Special characters
-->Miscellaneous Tips
--->Strange names
--->Advanced wildcards
--->Terminal input
->Remote shell
--->Loops in scripts
--->More tricks
-->Things to try
->Vi editor
->Mirror sites
->Further reading

[ Up ]

Unix ---> Remote shell

Here is the proper syntax to use the rsh (remote shell) command without having the remote shell remain active until the remote command is completed.

    rsh machine -n 'command >&/dev/null </dev/null &'
where machine is the name of the remote computer and command is the remote command to be performed.

This works because the -n flag attaches the rsh's standard input to /dev/null so you can execute the complete rsh command in the background of the local computer. Also, the input/output redirections on the remote computer (the stuff inside the single quotes) makes rsh think the session can be terminated since there is no data flow. In all truth, you don't have to use /dev/null. Any filename will work.

Site Statistics

t a y l o r@l i n u x b o x.c o m

© 1993-1998 Christopher C. Taylor