in reply to hanging process
... all of which are kludgey and assume you don't care about error handling here (e.g. no nohup output; does program really start up ok?).# You need EOF on input... system("nohup program </dev/null >/dev/null 2>&1 &"); # You need 1 line of empty input... system("/bin/echo | nohup program >/dev/null 2>&1 &"); # You need infinite lines of empty input system("yes '' | nohup program >/dev/null 2>&1 &");
bluto
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: hanging process
by pappajaz (Novice) on Oct 28, 2003 at 15:38 UTC |