Reputation: 59323
I want multiple PHP processes to run in the background without disturbing the user. This is the code I have:
exec("psexec -d php peak.php map/eline/updatedotrange first=$first last=$last filename=$filename > NUL 2> NUL");
But for every exec statement, a new CMD pops up. This kinda ruins it for me when I'm looping 100 times and running that line.
Any way I can get the process to run in the background, without the user noticing?
Upvotes: 1
Views: 338
Reputation: 59323
I solved it using bgrun.exe
If anyone knows a 100% native Windows way to do this I'd die to know
Upvotes: 1