10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
The following bash command line works for the last day of the month. Test by replacing the 1 with tomorrows day of month number
&& echo "Day before tomorrow"Can it be used within crontab? As
* * 28-31 * * && echo "Today ls last day of month" >>/tmp/crontabtestI tried to test crontab with... (1 Reply)
Discussion started by: lsatenstein
1 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I wanted to set Crontab for 4th and 25th of every month at 5:00 PM.
Script should take previous month and current year as command line arguement like...
/home/test1.sh -f ABCD 03 2014
so above script will run on 4th and 25th April 2014 but argument should be like previous month... (11 Replies)
Discussion started by: ajju
11 Replies
3. Shell Programming and Scripting
Hi ,
Please help me out to write a shell script to obtain the date of first tueday of every month. I am new to shell scripting.
Appreciate your help Thanks. (7 Replies)
Discussion started by: prongs22
7 Replies
4. UNIX for Dummies Questions & Answers
Hello Guys,
I have a questions regarding running a shell script every second working day each month.
I have no clue how solve this problem :wall:.
Important is that it has to be the second working (Mo-Fr).
Example: If 1st and 2nd Days of month are Sat and Sun the script must run on 4th day... (5 Replies)
Discussion started by: Hollo
5 Replies
5. Shell Programming and Scripting
Hi,
How to setup cronjob to run first wednesday of every month. Is there a way?
Thanks.. (9 Replies)
Discussion started by: Anjan1
9 Replies
6. Solaris
What should be the crontab entry in solaris to run a script on 1st of every month?
Is this correct?
00 02 1 * * <script to be executed> (5 Replies)
Discussion started by: deepaksahni0109
5 Replies
7. UNIX for Advanced & Expert Users
Hi,
Could any one please let me know the crontab entry for scheduling a job for every first monday of the month?
Thank You in advance,
Sue (2 Replies)
Discussion started by: pyaranoid
2 Replies
8. Shell Programming and Scripting
i've created a script which should run every last day of the month. what would be the exact crontab entry for this? thanks! (9 Replies)
Discussion started by: tads98
9 Replies
9. UNIX for Dummies Questions & Answers
Instead of the first five fields, one of eight special strings may appear:
string meaning
------ -------
@reboot Run once, at startup.
@yearly Run once a year, "0 0 1 1 *".
@annually (same as @yearly)
@monthly Run once a month, "0 0 1 * *".
@weekly Run once... (2 Replies)
Discussion started by: paulds
2 Replies
10. UNIX for Dummies Questions & Answers
Is there a way to setup a cronjob that will only run on the first monday of the month? (3 Replies)
Discussion started by: molonede
3 Replies