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.

cPanel Script Bug in Cron Editor

Discussion in 'General Discussion' started by trakwebster, Mar 7, 2003.

  1. trakwebster

    trakwebster Well-Known Member

    Joined:
    Jan 29, 2003
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    It appears that, at least on my system, the cPanel Cron editor has a bug as follows:

    It will work OK if you enter something like:

    5 * * * * /somescript.pl

    but it will fail if you enter something like:

    5,20,35,50 * * * * /somescript.pl

    In other words, if you enter a comma-separated list in the editor, it no worko.

    Peeking at the crontab with 'crontab -l' or 'crontab -e' is also puzzling. After attempting to enter something in the cron table, inside the cron table, instead of a cron entry, I see MAILTO="".

    Looks like a script bug to me.

    I am running WHM 6.0.0 and Cpanel 6.0.0-S97. I tried this using a couple of skins (coolbreeze and advanced) with the same results.

    Anybody else get the same results?
     
  2. ozzi4648

    ozzi4648 Guest

    Dont know why. I mean i have a cron setup like 0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 and it works just fine. Maybe you should try running your cron from the command line to make sure its even running properly before adding it as a cron job. I am also running S97 and my cron runs without fail.
     
  3. trakwebster

    trakwebster Well-Known Member

    Joined:
    Jan 29, 2003
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    Cron works fine -- but cron EDITOR no worko

    Sorry if I was unclear.

    Cron works fine. I can use the crontab command and all is well. Assuming that I've typed my desired cron info into a textfile.txt, I can do this --

    crontab -r (remove old crontab)
    crontab -l (peek inside and yes it's all gone)
    crontab textfile.txt (add my new stuff)
    crontab -l (peek inside and yes it's there)

    So cron and crontab work fine.

    However, on the cPanel there is a Cron editor, a little page where one can enter the cron info directly. It is this cpanel editor page which does not work. It seems to have a bug. It bombs when a comma-delimited list is entered into the minutes field. And if you try it, then peek into the crontable, you'll see that it has not worked.

    What do you suppose is going on?
     
  4. marius

    marius Well-Known Member
    PartnerNOC

    Joined:
    Jun 10, 2002
    Messages:
    157
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucharest
    cron

    we have the same problem.
    only that cron editor doesn't work in the advance mode.

    if make a cron using the standard editor is ok.
    but if you want to add one using the advance editor .. deletes all the crons you have.

    help?
     
  5. trakwebster

    trakwebster Well-Known Member

    Joined:
    Jan 29, 2003
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    This bug has been FIXED by cpanel folks

    In current versions of cpanel (6.2 as I post this) this bug has been repaired by the fine folks at cpanel, and is no longer a difficulty. (Actually it was fixed in 6.0 Edge number something.)

    Thanks, cpanel folks!
     
Loading...

Share This Page