i***e 发帖数: 2 | 1 Hi,
I am trying to do a rsh like this
> rsh remote-host sh /tmp/test.sh
The /tmp/test.sh on remote host looks like this:
#!/bin/sh
ls
myserver &
echo `pwd`
When I invoke the rsh, rsh hangs after `pwd` was printed and
it looks like it waits for the end of the background job of
myserver.
If I invoke the /tmp/test.sh locally, there is no problem,
the shell script exits normally. I am wondering how I can
avoid the script hangup when using rsh. Thanks. |
|