>> I think you need to assign it to a variable and then echo that:
>> $dnsquery = exec("dnsquery -h domain.net");
>> echo $dnsquery;
>>
> This is from the manual:
> "exec() executes the given command, however it does not output
> anything"
> Use system instead.
Well, don't trust everything you read :-)
These lines:
$httpd = exec("ps -e | grep -c httpd");
$mysqld = exec("ps -e | grep -c mysqld");
fill $httpd and $mysqld with the current number of daemons running. Works
fine on my Slackware box with PHP 4.0.6.
Cheers
Jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]