bruce wrote:
> michael...
>
> something strange is happening/or i'm missing something basic... but
> here's the sys response from your suggestion...
>
> [EMAIL PROTECTED] test]# php -r 'exec("bash -c 'exec nohup perl
> /home/test/college.pl >/dev/null 2>&1 &'");'
> [3] 2566
> -bash: ");: command not found

Sorry, you've got to either escape the embedded single quotes:

php -r 'exec("bash -c '\''exec nohup perl /home/test/college.pl >/dev/null 2>&1
&'\''");'

or just use double quotes and escape the embedded double quotes:

php -r "exec(\"bash -c 'exec nohup perl /home/test/college.pl >/dev/null 2>&1
&'\");"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to