Chances are good the shell is sending the HUP
signal to all its running children when you log out to indicate that "the line has been hung up" (a plain old telephone system modem reference to a line being "hung up" when disconnected. You know, because you "hang" the handset on the hook...)
The HUP
signal will ask all programs to die conveniently.
Try this:
nohup load.php &
The nohup
asks for the next program executed to ignore the HUP
signal. See signal(7)
and the nohup(1)
manpages for details. The &
asks the shell to execute the program in the background.
Clay's answer of using screen(1)
is pretty awesome, definitely look into screen(1)
or tmux(1)
, but I don't think that they are necessary for this problem.