Page 1 of 1

php console

Posted: Thu Jul 06, 2006 11:16 am
by dull1554
is there a command that i can run in a script thats running in the console that will reload the script thats running?

Posted: Thu Jul 06, 2006 11:19 am
by feyd
It wouldn't reload but create a new instance of the script without terminating the current instance.

Posted: Thu Jul 06, 2006 11:23 am
by jamiel
Set an exit status, then use a bash script to execute your PHP script, then if the exit status is a warning then execute the script again.

Otherwise just use a php script that executes your php script and looks for certain output to determine whether to run it again or not.

Posted: Thu Jul 06, 2006 11:50 am
by dull1554
ok, im really new to this whole console thing...

if i was to just have the occurance thats running open a new occurance, would there be a way, under win32 to have the new occurance check for identicle processes and terminate the oldest occurance?