• Uncategorized

About php : What-does-exit-code–1-mean-in-phps-exec-method

Question Detail

I am executing the following php code, and the status returned is -1, while output array is empty. What does this mean?

$cmd = "sort -T /var/www/html/my_app/protected/runtime/sort// -t '|'  /var/www/html/my_app/protected/runtime/workflow/db-export/filename_1818.txt -o /var/www/html/my_app/protected/runtime/workflow/db-export/filename_1818.txt 2>&1";
exec($cmd, $output, $status);
print_r($output);
echo $status;

Question Answer

No answer for now.

You may also like...

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.