05-04-2005
Re:
Much Thanks Perderabo!! Is it also possible to run 1st, 2nd, 3rd, 4th Sundays of the month and the last day of the month as long as the last day of the month is not a Sunday. Basically wouldn't want the process to run twice on the last day of the month if it was a Sunday.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a way to use cron to run a job on the 1st Wednesday of every month?? The more generic question is, "Are all of the fields in crontab AND'd together or are some OR'd?".
i.e. I had an entry in my crontab this morning as follows and I didn't expect it to run since the day of month is 20... (5 Replies)
Discussion started by: bradtri
5 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
Needs your help in scheduling a cron job for the below mentioned requirement. Just let me know if anybody has a similar job running as mentioned below:
Month end reports - Report of all items created in a parent table that were created during the week.
Presently this report runs... (3 Replies)
Discussion started by: Bhups
3 Replies
3. UNIX for Dummies Questions & Answers
Dear all
How can I schedule the cronjob to be run sometime at every first Sunday at every month? I have the edit the cronjob every month now, thanks (2 Replies)
Discussion started by: shanemcmahon
2 Replies
4. UNIX for Advanced & Expert Users
Hi,
How to get the lastmonth's end date? (have current date) through s shell script. I need to get it and pass it to a procedure.
Please advice.
Thanks in advance. (7 Replies)
Discussion started by: vanathi
7 Replies
5. Shell Programming and Scripting
I am running AIX 5.3 with the default shell as ksh.
I would like to know how to run a cron job on this system the last calendar day of the month. I found an example, but, I'm not sure if it will work with AIX and ksh...
02 16 * * * && /home/user/job-eom.kshI also need to be able to run a... (2 Replies)
Discussion started by: jthompson333
2 Replies
6. Shell Programming and Scripting
Hi ,
Can someone please assist to get monthend using cal utility and monthend shouldn't be saturday or sunday.
Cheers,
gehlnar (2 Replies)
Discussion started by: gehlnar
2 Replies
7. Shell Programming and Scripting
Hello,
basically I'm looking after a way of showing how many time is left to the end the day, week, month...
I can't seem to figure this out, so could one of you skilled guys tell me how should this be approached?
Examples:
Time left:
Day: 12h 12m 11s
Week: 4d 12h 12m 11s
Month:... (4 Replies)
Discussion started by: TehOne
4 Replies
8. Shell Programming and Scripting
I needed a cron job to run on the second to last friday of every month. Our servers are running HP-UX, and the HP-UX date command is pretty basic and does not have all of the fancy options that Linux date command does, and it does not have the ability at all to return future dates. So I had to... (0 Replies)
Discussion started by: lupin..the..3rd
0 Replies
9. Shell Programming and Scripting
Hello,
I'm on FreeBSD 8.2-STABLE shell and I was trying the following cron entry for end of month:
59 23 * * * && /home/user/eomt.sh >/dev/null 2>&1
I get the following error
Subject: Cron <user@shell>
eomt.sh contains the following codes
#!/bin/sh
rm /home/user/tst/logs/* &&... (9 Replies)
Discussion started by: user`
9 Replies
10. UNIX for Dummies Questions & Answers
how to get the next month end date.
dt=01312014
output=02282014 (2 Replies)
Discussion started by: w020637
2 Replies