Sunday, 15 February 2015

osx - Crontab Wget not working -



osx - Crontab Wget not working -

i have cron job set on mac download file every hr using wget. command follows:

0 * * * * wget -o "/users/me/downloads/example.txt" "http://www.example.com/example.txt"

this works absolutely fine when run in terminal manually, doesn't seem executing in crontab when other commands are.

any ideas?

couldn't wget work, accomplished same result using:

0 * * * * curl -o "/users/me/downloads/example.txt" "http://www.example.com/example.txt"

note lowercase 'o' opposed wget's uppercase 'o'

osx terminal crontab wget

No comments:

Post a Comment