you need a program called 'screen'
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