The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Importing Crons from Webmin To cPanel

Discussion in 'General Discussion' started by Dradden45, Mar 7, 2016.

  1. Dradden45

    Dradden45 Active Member

    Joined:
    Sep 7, 2012
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,689
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page