Operating System - HP-UX
1758602 Members
1739 Online
108873 Solutions
New Discussion юеВ

Re: Multiple cron job scheduling

 
Akif_1
Super Advisor

Multiple cron job scheduling

Hi All,

Can i run multiple cron jobs after editing #crontab -e file and enter new scheduling.

example: right iam running one cron job in mid night ***** (script) , now i would like to add one more job to this cron , how can i add this job.

I appreciate every one help at the earliest.
T(ogether) E(very one) A(chive) M(ore)
6 REPLIES 6
Ivan Krastev
Honored Contributor

Re: Multiple cron job scheduling

When you type 'crontab -e' you are editing crontab jobs per user, not per job.

So just write new jobs on the new line.


regards,
ivan
Tim Nelson
Honored Contributor

Re: Multiple cron job scheduling

for example:

crontab -e

#job1
0 0 * * * * /path/to/script1
5 0 * * * * /path/to/script2
0,15,30,45 * * * * /path/to/script3

and so on..

ZZ or :wq! to exit.

crontab -l to show your current cron file.

Geoff Wild
Honored Contributor

Re: Multiple cron job scheduling

Just add it.

Add another line to your cronfile and/or just enter:

crontab -e


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
H R Dileepkumar
New Member

Re: Multiple cron job scheduling

hi friend,

in crontab one more job is add like this type

crontab -e

then you have type jobs line one by one

1 1 * * * */.../to/....
1 7 * * * /..../to/...
sandeep mathur
Respected Contributor

Re: Multiple cron job scheduling

for multiple cron jobs add one more job just one below the other with the time you can do multile jobs no problem with it.
Akif_1
Super Advisor

Re: Multiple cron job scheduling

Iam thankful to all for solving my problem on time.


Have a good day:)
T(ogether) E(very one) A(chive) M(ore)