forking problem and logging off - solved
| From: | matt VanDeWalle | Date: | Mon, 21 Nov 2005 21:37:07 +0000 |
| Subject: | forking problem and logging off - solved | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-226241@lists.php.net to get a copy of this message | ||
I have fixed my prier problem of my script crashing down whenever i logged out of the shell, I got a bright idea, (one of the few it seems i'm having lately :p )
I found out that there is a "nohup" command ..i guess i knew there was but i had forgotten that until today. I put this in a script now to run my chat now with nohup, something like this
/* my script to start server */
#!/usr/bin/bash
nohup ./server.php &
of course i have to be in the right directory to do this but it works and finally, i can log off of my account without the server going down yay!
matt