Re: Exec issue
| From: | Robin Vickery | Date: | Mon, 19 Feb 2001 01:58:33 +0000 |
| Subject: | Re: Exec issue | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40496@lists.php.net to get a copy of this message | ||
>>>>> "DR" == David Robley <huntsman@hermes.nisu.flinders.edu.au>
>>>>> writes:
> On Sat, 17 Feb 2001 04:26, excalibur@hub.org wrote:
>> I have been having some problems getting exec to run a 'find
>> /var/spool/mail/ -mindepth 3 -type d' command. She just wont
>> execute it and give me a result, however she will run 'ls'....
> What result do you get running that command from the shell?
The syntax of the command itself looks fine.
I assume that there are actually directories three levels below
/var/spool/mail for it to find?
If it's succeeding on the commandline and not from PHP, I'd guess
it's probably a path problem, especially if you can run 'ls'. Try
giving the full path to 'find'.
-robin
--
Robin Vickery.................................................
BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE