Hi all,
im looking for a function like exec() or system() that will not wait until the command is executed? I could not find any function in the manual that has this behavior.
Function like exec() without waiting for execution
Moderator: General Moderators
Re: Function like exec() without waiting for execution
invoke the command thru nohup ( launches linux processes immune to a hangup signal )
syntax
nohup ./command > output.out &
you should redirect the output somewhere, and the & tells the process to run in the background. Technically what you need is the & not the nohup, but the nohup would stop that process from dying if apache got restarted or something
syntax
nohup ./command > output.out &
you should redirect the output somewhere, and the & tells the process to run in the background. Technically what you need is the & not the nohup, but the nohup would stop that process from dying if apache got restarted or something