Thanks a lot for all those replied.
I have tried nohup before:
in bash, I input
nohup ./program -option &
and it seems ok when I use "ps -a" and find it is runing happily there.
Then I logout.
But when I login to the system again, and use "ps -a" there, I could not
find the program. What have I done wrong?
Thanks a lot.
[EMAIL PROTECTED] wrote:
> On Thu, Oct 21, 1999 at 03:02:13PM +0800, LordX wrote:
> > My application needs to run all day long even after I log out ( yes, I
> > don't want to log into the computer all day long. :)
> > What should I do to let my program continue runing after my log off?
> > Thanks
> >
> It depends. When you say your application, if you
> mean you're writing ( or have written it ). There
> is a daemon(3) library call that will do what you
> want. Just add a command line flag for it...
> Anyhoo. If you didn't write it. (or dont care)
> try
> nohup programname &
> --
> nohup prevents it from getting a hangup signal when you log out.
> and the & makes it run in the background...
>
>
>
> if you dont have nohup on your system it's part of the GNU sh-utils.
>
> enjoy
>
> greg
> --