On Tuesday 02 August 2005 14:26, [EMAIL PROTECTED] grooved on as follows:
> Thanks, y'all.
>
> FYI, disown didn't seem to work for me (the process still died for some
> reason), but nohup works nicely:
I've found I need some command line switches for disown to do what you're
wanting. Of course, I can never remember what they are, exactly, but I think
it's something like -ah. If nohup/screen works for you, though, why torture
yourself with superfluous knowledge.
> nohup test.php &
>
> mrb
>
> > disown should do it. run it in the background, then type "disown", and
> > you should be able to quit and it will keep running. A big
> > downside of this compared to screen is that you cannot then reattach to
> > the process, that I know of.
> >
> > Derek
> >
> > On 8/2/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >> Let's say I want to run a commandline php program, test.php
> >>
> >> --------------------------------
> >> #!/usr/local/bin/php
> >> <?
> >> for ($x=0;$x<1000;$x++)
> >> {
> >> echo("hello world");
> >> sleep(10);
> >> }
> >> ?>
> >> --------------------------------
> >>
> >> I SSH with putty and run ./test.php and it works nicely. Now I want to
> >> run it in the background. so I append an ampersand to the end of the
> >> commandline (./test.php &), and it runs nicely. HOWEVER, as soon as I
> >> close my putty window, test.php, my background process, dies.
> >>
> >> That's not very nice.
> >>
> >> I could crontab it, but I don't want to. I just want it to keep
> >> running after I log out.
> >>
> >> ideas?
> >>
> >> mrb
> >
> > --------------------
> > BYU Unix Users Group
> > http://uug.byu.edu/
> >
> > The opinions expressed in this message are the responsibility of their
> > author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
> > ___________________________________________________________________
> > List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
>
> --------------------
> BYU Unix Users Group
> http://uug.byu.edu/
>
> The opinions expressed in this message are the responsibility of their
> author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
> ___________________________________________________________________
> List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list