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

Comments

  • mfillpot
    mfillpot 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?
  • usmangt
    usmangt 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
  • usmangt
    usmangt Posts: 42
    all right just checked the log actually have wrong permission on the file so done chmod and it worked..

Categories

Upcoming Training