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
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
, 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
3 matches
Mail list logo