crontab

Discussion in 'Suggest HOWTO' started by pravinkharche, Mar 28, 2008.

  1. pravinkharche

    pravinkharche New Member

    how can i add crontab in every 5 minit or every 2 min task should compltd
    and for every boot
     
  2. zcworld

    zcworld New Member

    go here
    http://www.csgnetwork.com/crongen.html

    and put in what you need click calculate
    copy it
    and in your terminal / putty window
    crontab -e
    at the bottom of the file
    paste in the info

    :wq

    and wait
    to see if its runs
     
  3. falko

    falko Super Moderator Howtoforge Staff

    Every 5 minutes:
    Code:
    */5 * * * * your_command
    Every 2 minutes:
    Code:
    */2 * * * * your_command
     
  4. pravinkharche

    pravinkharche New Member

    multiple crontab

    thaku for help but how can i set more than one task in crontab at a time
     
  5. zcworld

    zcworld New Member

    crontab -e

    each task on its own line

    */2 * * * * /my/task1
    */2 * * * * /take2/222
    */2 * * * * /moot/11
     
  6. pravinkharche

    pravinkharche New Member


    i want to do this using scprit
    or is it possible that one user having twwo diffrent crontab file
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Why do you want to have two crontabs for one user? You can put multiple cron jobs in one crontab, one per line.
     

Share This Page