in reply to Slightly OT - automating nohup bg jobs...
I'm no ssh guru, but I'm assuming ssh is keeping the session open since stdout and stderr are still open. If I redirect stdout and stderr, it seems to work ok for me on Linux. You may also want to redirect stdin as well. Try something like this...
Another option might be to backround the ssh process on your local machine instead (though these will of course accumulate).print `ssh myhost "nohup nice perl script.pl </dev/null >/dev/null 2>& +1 &"`;
bluto
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:^2 Slightly OT - automating nohup bg jobs...
by cLive ;-) (Prior) on Jan 23, 2004 at 06:28 UTC | |
by bluto (Curate) on Jan 23, 2004 at 16:19 UTC | |
by cLive ;-) (Prior) on Apr 20, 2004 at 00:20 UTC | |
by bluto (Curate) on Apr 20, 2004 at 13:43 UTC |