Create a crontab entry to run the script the first seven days of every month. This is straightforward. Within the script test for the day of week being Saturday or Sunday and stop if this test returns <true>.
This will work generally, the only exception being floating holydays.
To cover even this you will have to provide a list of holydays to the script and put it in crontab so that it is called daily. The script would first test if a new month has begun. If this is the case and the day of week is not a Saturday or Sunday or the date is found in the holyday list (in which case it aborts), it runs and increments a counter in a file until 5 is reached. If a new month has not begun the file with the counter is read and if the counter is already at 5 the script stops also.
hi all
how to schedule a cron job running on last day of every third month at
12 midnight
will the following work
0 0 30,31 3,6,9,12 * <required file>
thanks (3 Replies)
Sometimes cron really upsets me and I cant figure out these types of wierd dates, but how do I get cron to run something on every other sunday? I am running Solaris 8.
-S (4 Replies)
Hi Everyone , have a nice day
given below is the line i have added in crontab
* * * * * /Rauf/script2.sh
intended to run this script after every minute , when i run this script manually it runs fine and produces output , but after adding it to crontab ( like given above ) , it doesnt work
... (5 Replies)
Hi,
i need to setup a cronjob that has will execute iostat command from morning to evening time.
for instance the timing has will be like this.
8:00 A.M -- 6:00P.M
how to define this entry in crontab
Regards (3 Replies)
hi
i am new in solaris. i am accessing server through putty. i could not add entry in crontab.
i have given "crontab -e" for add a new entry. It is not coming. what parameter i have to set for getting crontab -e
thanks (1 Reply)
Is this the correct entry to touch a file on 6/6 5AM?
00 05 06 06 * touch /support/home/.no_copy Please use next time code tags for your code and data (5 Replies)