note 110889 deleted from function.exec by cmb
| From: | cmb@php.net | Date: | Sun, 22 Sep 2019 07:26:52 +0000 |
| Subject: | note 110889 deleted from function.exec by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212287@lists.php.net to get a copy of this message | ||
Note Submitter: sprunka at gmail dot com
----
exec($cmd . " &") did not seem to work for backgrounding a task in linux, but using
the pclose(popen($cmd . ' &', 'r')); trick from the Windows advice did work
just fine.
This is, of course, without catching and throwing away or catching and saving any output (stdout or
stderr) from $cmd.