#18711 [Bgs]: PHP script will exit on ouput to non-existent SSH session

From: Date: Fri, 02 Aug 2002 19:42:16 +0000
Subject: #18711 [Bgs]: PHP script will exit on ouput to non-existent SSH session
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15860@lists.php.net to get a copy of this message
ID: 18711 Updated by: cynic@php.net Reported By: dodo@fuckmicrosoft.com Status: Bogus Bug Type: *General Issues Operating System: freeBSD 4.5 PHP Version: 4.2.1 New Comment: bleh, cannot write i can't. anyway. the problem is that your shell shoots down all your processes which are in its process tree or something like that. there are shell specific ways to change this (i use zsh, which has the 'disown' builtin), or you can use nohup(1), which should be quite common. :) Previous Comments: ------------------------------------------------------------------------ [2002-08-02 15:29:18] cynic@php.net sure. your shell kills all processes your processes when you log out. ------------------------------------------------------------------------ [2002-08-02 15:09:12] dodo@fuckmicrosoft.com I run a shell scrypt wich adds accounts for me, when I start the shellsscript: ./myscript & #!/usr/local/bin/php -q while(1) { // adduser stuff sleep(10); } when I start it it perfectly runs and works, but when I close the SSH session and come back later [when the script has outputted stuff to a non existent SSH session [where I started the script from]] the process is gone... freeBSD 4.5 PHP 4.2.1 compile: ./configure --with-mysql --with-apxs=/www/bin/apxs ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18711&edit=1

« previous php.bugs (#15860) next »