The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
Scheduling bi-weekly through cron
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Scheduling bi-weekly through cron
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
02-19-2009
hard aix
Registered User
Join Date: Feb 2009
Location: Martinez, Taxifornia
Posts: 25
Quote:
Originally Posted by
LPT
Is there a way in AIX to schedule a script to run bi-weekly through cron?
Try this:
Code:
00 08 * * 3 [[ $(expr `date +%W` % 2) = 0 ]] && /home/user/user.script
depending on the bi-weekly cycle you may need a "= 1" instead.
hard aix
View Public Profile
Find all posts by hard aix
Find hard aix's past nominations received
Find hard aix's present nominations given