[PHP] cron: No such file or directory

2002-06-03 Thread Edgard Berendsen

I'm trying to do a cronjob.
If I'm right I should have a php file with
#!/usr/lib/php -q
at the beginning and a cronjob like

MAILTO=[EMAIL PROTECTED]
0 * * * * /usr/lib/php/ $HOME/myfile.php

whereis php tells me:
php: /usr/lib/php /usr/include/php

What's wrong?

At the beginning when I tried with other paths like /usr/bin/php I received
a mail
with 'No such file or directory' error, now I don't receive anything!
Even I change to the old /usr/bin/php wrong dir and I still receive
nothing!!!





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




Re: [PHP] cron: No such file or directory

2002-06-03 Thread Marek Kilimajer

Cron doesn't  have the same enviroment like normal shell, so it knows 
nothing about $HOME, you need to use full path.

Edgard Berendsen wrote:

I'm trying to do a cronjob.
If I'm right I should have a php file with
#!/usr/lib/php -q
at the beginning and a cronjob like

MAILTO=[EMAIL PROTECTED]
0 * * * * /usr/lib/php/ $HOME/myfile.php

whereis php tells me:
php: /usr/lib/php /usr/include/php

What's wrong?

At the beginning when I tried with other paths like /usr/bin/php I received
a mail
with 'No such file or directory' error, now I don't receive anything!
Even I change to the old /usr/bin/php wrong dir and I still receive
nothing!!!





  




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




Re: [PHP] cron: No such file or directory

2002-06-03 Thread mike

Actually, /usr/lib/php is a directory most likely.  You need to make sure
you compiled the binary at compile time, and then (on Linux) it would be
installed to /usr/local/bin/php.

Thanks,
- Original Message -
From: Marek Kilimajer [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Monday, June 03, 2002 5:42 AM
Subject: Re: [PHP] cron: No such file or directory


 Cron doesn't  have the same enviroment like normal shell, so it knows
 nothing about $HOME, you need to use full path.

 Edgard Berendsen wrote:

 I'm trying to do a cronjob.
 If I'm right I should have a php file with
 #!/usr/lib/php -q
 at the beginning and a cronjob like
 
 MAILTO=[EMAIL PROTECTED]
 0 * * * * /usr/lib/php/ $HOME/myfile.php
 
 whereis php tells me:
 php: /usr/lib/php /usr/include/php
 
 What's wrong?
 
 At the beginning when I tried with other paths like /usr/bin/php I
received
 a mail
 with 'No such file or directory' error, now I don't receive anything!
 Even I change to the old /usr/bin/php wrong dir and I still receive
 nothing!!!
 
 
 
 
 
 
 



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




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