Yes, in fact to be sure I copied free into my /var/www/html/swap directory
and used that path. It still says.

[EMAIL PROTECTED] swap]# php swap.php
sh: line 1: /usr/local/php/bin/free: No such file or directory

even though I explicitly said 

exec ("/var/www/html/swap/free -b", $data, $result);


-----Original Message-----
From: Daevid Vincent [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 02, 2004 12:51 AM
To: 'Brian Duke'; 'Jay Blanchard'; 'William Lovaton';
[EMAIL PROTECTED]
Subject: RE: [PHP] I think this is a bug...cant use exec commands.

This may seem obvious, but did you try the FULL path to 'free'?
As in  exec("/usr/local/bin/free -b", $data, $result);

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

Reply via email to