shell - Running multiple commands in background without over lapping (PHP & Ubuntu) -


why hello there! appreciate potential answers presented. basically, need 2 shell commands run in background website user doesn't need wait until process has been completed further navigate website. these 2 commands cannot run @ same time affect eachother. second 1 needs run after first. important part of code can found below!

shell_exec("sudo " . $command . ">> /dev/null &1"); shell_exec("sudo make install >> /dev/null &1"); 

is there way of letting them run asynchronously?

thanks!

you'd better of queuing solution ie. putting shell execution jobs in queue , return user , in daemon process in single thread read , execute queued jobs. quite , php friendly queue solution beanstalk pheanstalk php library


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -