Crontab help plz


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Crontab help plz
# 1  
Old 12-15-2010
Crontab help plz

Hi,

i want to schedule a cron jobs. its should execute daily at 00:00 ,but in saturday the cron should execute at 23:00 . plz help. i want to schedule it in a single step.
# 2  
Old 12-15-2010
Hi.

Schedule the job every day at 23:00 (0 23 * * *), and add a line to your script:
Code:
[ $(date '+%w') -ne 6 ] && sleep 3600

or to the cronjob itself.

Otherwise, just set up two cronjobs.
This User Gave Thanks to Scott For This Post:
# 3  
Old 12-15-2010
Code:
0 0 * * 1-5,0 /path/yourscript
0 23 * * 6 /path/yourscript

?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

help me plz

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: *I want to Write shell script to print the this pattern: 1 22 333 4444 55555 *I want to Write shell... (2 Replies)
Discussion started by: last exile
2 Replies

2. Solaris

Crontab latest entry disappearing. plz help

The latest crontab entry is disappearing time and again on acceptance and production environment. the same entry gets deleted. any pointers to what might be causing this issue? (6 Replies)
Discussion started by: bluenavi
6 Replies

3. Shell Programming and Scripting

plz help me

hi... i want to print the below format by using shell scripting...plz help me 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Thanking u in advance... regards ram (1 Reply)
Discussion started by: ram_pl
1 Replies

4. HP-UX

any one plz help

i want working environment hp_unix screen shots ,any one plz send (1 Reply)
Discussion started by: nagi
1 Replies

5. Shell Programming and Scripting

plz help me

this script reads source.txt and move and random choice 6 files among 25 txt file and renmame it.. but it is not executed.. whats problem? #!/bin/ksh while read line do cd $line/radmin num=0 /bin/ls *.txt | while read file_nm ; do (( check = $RANDOM % 2 )) if ; then continue... (1 Reply)
Discussion started by: topic32428285
1 Replies

6. UNIX for Dummies Questions & Answers

plz help me...

unfortunately...i created directory with name "-rf" but now am unable to remove it. (6 Replies)
Discussion started by: venkatramana
6 Replies

7. Shell Programming and Scripting

Hi PLZ Let me Know

Hi, Iam a beginner to UNIX OS.Plz can any body tell me about CRON.Why we use CRON & where it'll be usefull. (1 Reply)
Discussion started by: suneel.abinitio
1 Replies

8. Programming

plz help!

i'm pretty new to unix programming. i just wanna know how exactly fork(), waitpid() works. i have read some from the book, but it's still confusing. especially with those < 0 and == 0. plz help!!!! (1 Reply)
Discussion started by: ligerdave
1 Replies

9. UNIX for Dummies Questions & Answers

Help Plz!

Ok, here's the deal. I'm running WinXp. I was merging two partitions using partition magic when I lost power to my box. I have very IMPORTANT data on one partition and the other is blank, hence the attempted merge. After the power loss, I booted my system up. Now, I was getting errors... (2 Replies)
Discussion started by: Silicon Demon
2 Replies

10. UNIX for Dummies Questions & Answers

plz Help How should I configure cc compiler output file plz help???

i.e configuration of C compiler :confused: (4 Replies)
Discussion started by: atiato
4 Replies
Login or Register to Ask a Question