Re: Scheduling Jobs - Last day of the month - HOWTO?
- From: Bit Twister <BitTwister@xxxxxxxxxxxxxxxx>
- Date: Wed, 30 Aug 2006 12:15:03 -0500
On Wed, 30 Aug 2006 10:51:31 -0500, Michael B Johnson wrote:
I would like to schedule a job on the last day of each month.
Create a script to be executed on 28-31 day of month via cron.
The script figures out if it is last day of the month.
set $(cal)
_count=$(($# - 1))
shift $_count
_last_day=$1
_today=$(date "+%d")
if [ $_today -eq $_last_day ] ; then
run_your_script_here
fi
.
- References:
- Scheduling Jobs - Last day of the month - HOWTO?
- From: Michael B . Johnson
- Scheduling Jobs - Last day of the month - HOWTO?
- Prev by Date: Memory restrictions
- Next by Date: Re: Some bash questions :-)
- Previous by thread: Re: Scheduling Jobs - Last day of the month - HOWTO?
- Next by thread: Re: Scheduling Jobs - Last day of the month - HOWTO?
- Index(es):