Welcome to the Linux Foundation Forum!

Running multiple cron jobs

hi,

i want to run multiple cron jobs. i defined the first one in the crontab -e which runs after every 5 mins

then i again define the second cronjob is the crontab -e file, but it didnt run.

Please tell me if i am doing it in the wrong way.

Thanks

usman

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Posts: 2,177
    There should be no issues with having multiple entries in the crontab file, there may be something wrong with the crontab entry or the script/program it is running. Can you share the contents of your crontab file here so we can review the parameters?
  • Posts: 42
    i have defined two cron jobs in the crontab file using crontab -e

    first one will run after every 5 minutes and second one will run after every hour. The script script is different for both but in both script they are redirecting the output in a same file which is name cronoutput.



    */5 * * * * /home/usman/Downloads/5mincron

    * */1 * * * /home/usman/Downloads/hourcron
  • Posts: 42
    all right just checked the log actually have wrong permission on the file so done chmod and it worked..

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training