note 11813 deleted from function.exec.php by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Thu, 08 Mar 2001 21:57:32 +0000 |
| Subject: | note 11813 deleted from function.exec.php by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12077@lists.php.net to get a copy of this message | ||
It seems that redirecting standard error does not work for all shell commands.
For instance I can not receive all return data from an nslookup command even if I add 2>&1
onto the end of the command.
It only returns the first 2 lines(standard output) and no more.
Other commands work fine with no problems aka fwhois.
Can someone explain why some programs dont return all output to a cgi.
Ive had a similar problem with a perl script which I ended up having to use wget instead of snarf
because I could not manage to get the data from snarf to redirect/return to perl.
This is the standarderror which im trying to capture in php, does anyone have any ideas on this?
*** ns1.iweb.net.au can't find dohdamnit.com: Non-existent host/domain