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

Reply via email to