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.

how to include /scripts/fixquotas in a cron?

Discussion in 'General Discussion' started by cyon, Jun 5, 2003.

  1. cyon

    cyon Well-Known Member
    PartnerNOC

    Joined:
    Jan 15, 2003
    Messages:
    320
    Likes Received:
    0
    Trophy Points:
    16
    hy,

    there are still a lot of cpanel servers which have problems with quotas.. and I think a good thing would be to add the script/fixquotas script to the cron which runs every night and runs for example the /scripts/upcp script.

    can someone give a howto?

    thx,

    dave.

    cPanel.net Support Ticket Number:
     
  2. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    Do you know how to use vi?

    cPanel.net Support Ticket Number:
     
  3. cyon

    cyon Well-Known Member
    PartnerNOC

    Joined:
    Jan 15, 2003
    Messages:
    320
    Likes Received:
    0
    Trophy Points:
    16
    the edit proggie? yes, I do..

    cPanel.net Support Ticket Number:
     
  4. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    OK then as root, do:

    crontab -e

    it will bring up the crontab listing.. You can then insert a line and duplicate what the line looks like.

    ==== here's some docs ====

    scheduling on linux, alarm clocks, timed actions : crontab

    Setup the schedule in your crontab file.
    It can be called anything e.g. mycrontab.txt
    In this file set up the time and date of the job you want done
    followed by the job itself.
    The cron tab file is a text file organised as follows

    MINUTE(0-59) HOUR(0-23) DAYOFMONTH(1-31) MONTHOFYEAR(1-12) DAYOFWEEK(0-6) Note 0 = Sun
    with * standing for a wildcard.

    So to run 'cal' once every hour at the half hour on the 24th day
    of every month regardless of the day of the week you would do

    30 * 24 * * /usr/bin/cal

    You can add as many tasks as you need, each on a new line.
    End the file with a blank line
    NOTE: The blank line after the last task is necessary for cron
    to work.

    After setting up your crontab file execute
    crontab mycrontab.txt
    to set the jobs.

    crontab -l will list all current cron jobs
    crontab -r will erase the current schedule (all of it)

    from http://www.superscripts.com/tutorial/crontab.html

    Brenden

    cPanel.net Support Ticket Number:
     
  5. cyon

    cyon Well-Known Member
    PartnerNOC

    Joined:
    Jan 15, 2003
    Messages:
    320
    Likes Received:
    0
    Trophy Points:
    16
    crontab -e did the trick!

    thx alot!

    cPanel.net Support Ticket Number:
     
  6. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    No problem man! :)

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page