I've been trying to setup cron to run wget every 15 minutes to execute a script on my site. However it never seems to actually run and I can't figure out what I'm missing:
| */15 * * * * /usr/bin/wget -q -O /dev/null "http://v9.forgottenexpanse.com/site/import_twitter" > ~/logs/user/cron.log 2>$1
|
It creates the log file on schedule, but there is nothing in it and the script isn't actually called. If I run the wget command from the command line it executes without issue.
Edit: I've also tried moving wget to a script and calling that from cron with no luck:
| */15 * * * * ~/webapps/fe_v9/scripts/import_twitter.sh > /dev/null 2>$1
|
asked
Oct 26 '11 at 08:55
Curtis Herbert
1●2
Looks like removing
> /dev/null 2>$1from the tail end of the entries gets them running, although I'm still confused as to why that would break things...