You are not logged in.
I have a script running everyday at 2:02 in the morning
crontabe -e: 2 2 * * * /srv/http/site/script.php
the location is correct, as Vim auto completes it, so the file is there for sure.
At the end of the script, I am supposed to get an email(to gmail). But I don't.
I get an mail in /var/mail/user saying the cron job was successful etc, but that's about it.
The thing is, if I run the script just manually (from bash), I get an email (to gmail) properly.
recent upgrades: Pacman -Syu
one reset.
any thoughts?
Thanks,
Offline
Maybe "php /srv/http/site/script.php"?
Offline
Maybe it needs terminal to run?
Offline
@hokasch
Would I need that?
I have "#!/usr/bin/php" in the beginning of the script..(thats how it works by: "/srv/http/site/script.php " from bash)
@karol
it worked before the upgrade.
lets say it needs terminal to run, is there a way to set that up in a cron job?
Last edited by scarletxfi (2011-02-16 23:43:34)
Offline
hmm.. it seems to work ok if i start it later. I'm not sure what's going on.
differences:
crontab -e now reads: 51 18 * * * /srv/http/site/script.php ...
Oh well,
Thanks...
Offline