crontab in every 05,20,35,50 min


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting crontab in every 05,20,35,50 min
# 1  
Old 06-16-2008
crontab in every 05,20,35,50 min

Hi ,

How can i set a cronjob which needs to run every 05,20,35,50 min .
I tried 05,20,35,50 * * * * /exec/eerrtis/tttttk/AOOK00000/bin/Packing.sh.. but its giving error while saving the crontab
file ....

What is the correct way ???


Thanks and Regards
# 2  
Old 06-16-2008
What error are you exactly getting?
Quote:
Originally Posted by scorpio
Hi ,

How can i set a cronjob which needs to run every 05,20,35,50 min .
I tried 05,20,35,50 * * * * /exec/eerrtis/tttttk/AOOK00000/bin/Packing.sh.. but its giving error while saving the crontab
file ....

What is the correct way ???


Thanks and Regards
# 3  
Old 06-16-2008
You could try just breaking the cronjob up into separate lines:

*/05 * * * * /exec/eerrtis/tttttk/AOOK00000/bin/Packing.sh
*/20 * * * * /exec/eerrtis/tttttk/AOOK00000/bin/Packing.sh

etc.

Hope this helps.
# 4  
Old 06-16-2008
While trying to save, Following error i am getting

"/tmp/crontab.XXXXSqLQDG":4: bad minute
errors in crontab file, can't install.
Do you want to retry the same edit?

....

If i am doing like

05* * * * /esasa/aslis/m2xtrk/A00000sds/bin/Packing.sh

then it work also
# 5  
Old 06-16-2008
Try the following:

5,20,35,50 * * * * /esasa/aslis/m2xtrk/A00000sds/bin/Packing.sh
or
5 */4 * * * /esasa/aslis/m2xtrk/A00000sds/bin/Packing.sh

Hope this will help you.

Brgds,
Yogi
Quote:
Originally Posted by scorpio
While trying to save, Following error i am getting

"/tmp/crontab.XXXXSqLQDG":4: bad minute
errors in crontab file, can't install.
Do you want to retry the same edit?

....

If i am doing like

05* * * * /esasa/aslis/m2xtrk/A00000sds/bin/Packing.sh

then it work also
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Get min and max value in column

Gents, I have a big file file like this. 5100010002 5100010004 5100010006 5100010008 5100010010 5100010012 5102010002 5102010004 5102010006 5102010008 5102010010 5102010012 The file is sorted and I would like to find the min and max value, taking in the consideration key1... (3 Replies)
Discussion started by: jiam912
3 Replies

2. UNIX for Dummies Questions & Answers

Cron every 5 min

Hi, I am trying to run a script in cron every 5 min in SOLARIS 10 When I do5 * * * * /path to fileor*/5 * * * * /path to file Doesn't work. Please let me know what should I put in the cron entry Thanks (2 Replies)
Discussion started by: Rossdba
2 Replies

3. AIX

crontab every 5 min.

Hi running aix 6.1 oslevel 6100-07-03-1207 I need to confirm that this cron entry is set properly. I need it set for every 5 min. 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /path/to/script.sh it does not appear that it is running every 5 min but it did in the beginning. (4 Replies)
Discussion started by: vpundit
4 Replies

4. Solaris

min HW requirement for Solaris10?

Dear All I am using Solaris8 on my sun UltraSPARC machine. Can you please let me know what is the minimum HW requirement to install Solaris10g ? Thank you in advance (1 Reply)
Discussion started by: hadimotamedi
1 Replies

5. Shell Programming and Scripting

Get min from a column conditionally

hi, i have a file with folowing content: STORAGE PERCENTAGE FLAG: /storage_01 64% 0 /storage_02 17% 1 /storage_03 10% 0 /storage_04 50% 1 I need to get the value of STORAGE from those with FLAG=0 and which has the min PERCENTAGE i am able to get the STORAGE corresponding to... (8 Replies)
Discussion started by: kichu
8 Replies

6. Shell Programming and Scripting

How to get the counter value incremented after every 1 min?

I want to check the counter value for every 1 min until the particular counter value is reached and it should exit. Counter value: 15.( For Example) counter = 1 The start time is noted using Localtime. How can i do this in perl? Regards Archana (1 Reply)
Discussion started by: vanitham
1 Replies

7. Shell Programming and Scripting

grep for last 15 min of log

I need help trying to grep for a error in log file for only last 15 min. example under /var/adm/messages i need to grep for "error 102" but only if it occured in last 15 mins? Thanks (7 Replies)
Discussion started by: shehzad_m
7 Replies

8. Shell Programming and Scripting

get min, max and average value

hi! i have a file like the attachement. I'd like to get for each line the min, max and average values. (there is 255 values for each line) how can i get that ? i try this, is it right? BEGIN {FS = ","; OFS = ";";max=0;min=0;moy=0;total=0;freq=890} $0 !~ /Trace1:/ { ... (1 Reply)
Discussion started by: riderman
1 Replies

9. Post Here to Contact Site Administrators and Moderators

It seems last 20 min Server was very very Slow

Hi Guys, Since last 20-30 min Server was Too slow ..even few of times i got Database connection error. Thanks Sanjay Tripathi (0 Replies)
Discussion started by: SanjayLinux
0 Replies

10. Shell Programming and Scripting

crontab settings for every 10 min eveyday?

Will this be the cron setting if I want to run the script.sh file in every 10 min eveyday? Can someone pls confirm? Thanks in advance C Saha (1 Reply)
Discussion started by: csaha
1 Replies
Login or Register to Ask a Question