note 40904 added to function.exec

From: Date: Thu, 18 Mar 2004 15:58:51 +0000
Subject: note 40904 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-67024@lists.php.net to get a copy of this message
<quote> matt at nexxmedia dot com 11-Jun-2003 07:38 [ 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); </quote> Can anyone please give me a working example on specifying multiple arguments? I can have a script send me a mail, but not if I specify args. $command = "/usr/bin/lynx -dump 'https://www.anotherserver.com?var=blah&var2=doh' >/dev/null &"; exec($command); This doesn't work for me, what is wrong? TIA ---- Manual Page -- http://www.php.net/manual/en/function.exec.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40904 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40904&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40904&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67024) next »