user1504222
user1504222

Reputation: 267

Php exec() NOT wait for result, just starting

I use exec to start a job on WINDOWS

exec("mycmd.exe $path /lang Eng /out $path /quit");

exist a way to just starting process without page hang up for waiting end? sometimes process take about 2 hours to end...

Upvotes: 0

Views: 69

Answers (1)

Hid Dencum
Hid Dencum

Reputation: 592

instead exec, use:

pclose(popen("start yourcommand.exe ... ...","r"));

Upvotes: 1

Related Questions