note 32951 deleted from function.exec by cmb
| From: | cmb@php.net | Date: | Sun, 24 Nov 2019 08:44:13 +0000 |
| Subject: | note 32951 deleted from function.exec by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213204@lists.php.net to get a copy of this message | ||
Note Submitter: matt at nexxmedia dot com
----
[ Editor's note: When passing multiple args in a URL like this, be sure to enclose the URL in
quotes otherwise the & will be interpreted as a detachment flag and the rest of the command will
be truncated. ]
The lynx browser can be used as simple way of executing a script from a remote location without
waiting for it to complete:
$command = "/usr/bin/lynx -dump https://www.anotherserver.com?var=blah
>/dev/null &";
exec($command);