I need to create a cron job that runs a webpage (and retrieve some data) (not a file on the server). I tryed wget and it works if I set the cron job manually in unix, but not if I create the cron job in cpanel. Something like wget -O http://someurl.somehting.
Share
cron jobs do not run under your user and environment. The path to
wgetmay not be in the cron user’sPATH. Specify the full path (e.g./usr/bin/wget).