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...
I also need to be able to run a job on every day except the last calendar of the month (actually a series of jobs, but, I assume I can adopt the syntax for multiple jobs).
So to summarize:
I would like to run the following jobs where specified EXCEPT on the LAST calendar day of the month.
And I would like to run another job ON the LAST calendar day of the month, and probably a couple of others...
I'm also fairly new at shell scripting, etc., especially ksh.
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...
I also need to be able to run a job on every day except the last calendar of the month (actually a series of jobs, but, I assume I can adopt the syntax for multiple jobs).
So to summarize:
I would like to run the following jobs where specified EXCEPT on the LAST calendar day of the month.
And I would like to run another job ON the LAST calendar day of the month, and probably a couple of others...
I'm also fairly new at shell scripting, etc., especially ksh.
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)
Hi pals,
Pls tel me how to cancel print jobs for an entire month (ex : sept)?
lpstat -oLBNDUIP061 | grep -i Sep is listing me hundreds of jobs.
Thanks in Advance,
Satish
Video tutorial on how to use code tags in The UNIX and Linux Forums. (22 Replies)
There are two jobs in Solaris , Cron and at jobs..
I know how to disable or enable cron jobs.
How can I enable at jobs and disable it.
Kindly help.
Rj (2 Replies)
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)
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)
Where can someone find info on Cron Jobs? Very new to UNIX and the PC I inherited looks to have several of them. Looks like they are some kind of background program that runs automatically at specified times. Would like to delete some of them and know more about them. (6 Replies)