Importing Crons from Webmin To cPanel

Dradden45

Active Member
Sep 7, 2012
37
2
8
cPanel Access Level
Root Administrator
Hello,

I have some crons I am trying to import from Webmin to cpanel account. The cron on Webmin looks like:

/home/user/cron-defs/do-wget-url util.sec/email_sender/email_sender.php email_sender.html

Trying to duplicate this on cPanel:

wget -b http://www.domain.com/util.sec/email_sender/email_sender.php email_sender.html

Gives:

--2016-03-07 13:18:32-- http://email_sender.html/
Resolving email_sender.html (email_sender.html)... failed: Name or service not known.
wget: unable to resolve host address 'email_sender.html'

Weird thing is that this work on the webmin server when it looks like it shouldn't. Don't quite get it.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

You will need to convert the cron jobs to the proper format when adding them to a cPanel server. The following third-party URL offers advice on how to configure a cron job with "wget":

Using wget and cron to download webpages

Thank you.