![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing arguments to a shell script from file while scheduling in cron | weblogicsupport | SUN Solaris | 4 | 01-27-2008 11:16 PM |
| Problem with scheduling a shell script on cygwin using cron | shash | UNIX for Dummies Questions & Answers | 4 | 08-09-2007 06:08 PM |
| scheduling tasks with cron | alikun | UNIX for Dummies Questions & Answers | 4 | 03-21-2007 04:32 PM |
| cron job scheduling | shihabvk | UNIX for Advanced & Expert Users | 1 | 08-22-2005 10:36 AM |
| scheduling | prashantuc | UNIX for Dummies Questions & Answers | 2 | 05-11-2001 03:39 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Scheduling bi-weekly through cron
Is there a way in AIX to schedule a script to run bi-weekly through cron?
I have a script that needs to run every other Wednesday, and this is what I thought I had to enter in the crontab file: 00 08 * * 3/2 /home/user/user.script It didn't like that. It reports a syntax error. I'm almost positive that in Linux and/or Solaris something like that will work, or I may be totally off.... ![]() Any suggestions, would be greatly appreciated! Thanks in advance! |
|
||||
|
Quote:
Code:
00 08 * * 3 [[ $(expr `date +%W` % 2) = 0 ]] && /home/user/user.script |
|
||||
|
I guess it will run from 1-7 & 15-21, and every wednesday. so how does it go bi-weekly.
|
| Sponsored Links | ||
|
|