Linux.com

Home Linux Community Forums Software Command Line Running multiple cron jobs

Running multiple cron jobs

Link to this post 26 Jan 11

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

Link to this post 26 Jan 11

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?

Link to this post 27 Jan 11

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

Link to this post 27 Jan 11

all right just checked the log actually have wrong permission on the file so done chmod and it worked..

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board