niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
· nixdoc.net · man pages · Linux HOWTOs · FreeBSD Tips · Forums
navigation Forum index » *nix » AIX
Cron : Step Values
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
dawaves@gmail.com
*nix forums beginner


Joined: 27 Apr 2006
Posts: 48

PostPosted: Mon Jul 03, 2006 10:56 pm    Post subject: Cron : Step Values Reply with quote

It does not seem that AIX can support Cron Step Values. Is this true?

I want to set up a recurring job where a certain script will run every
28 days. I know that step values can take care of this problem but
whenever I try to do a cronjob, it does not work.

For example:

-------------------------------------------------------------------------------
#crontab -e


..
..
..
..
0 9 10/28 7 * /tmp/somescript.sh 1>/dev/null 2>/dev/null



"/tmp/crontabB-Ajqa" 44 lines, 1783 characters
A line of the crontab file:

0 9 10/28 7 * /tmp/somescript.sh 1>/dev/null 2>/dev/null

contains the following error:

0481-079 Reached a symbol that is not expected.
#


---------------------------------------------------------------------------------------

Any ideas as to how to go about getting this job going?

Thanks!
Back to top
mr kay
*nix forums addict


Joined: 11 Apr 2005
Posts: 50

PostPosted: Tue Jul 04, 2006 4:16 am    Post subject: Re: Cron : Step Values Reply with quote

only on 28th every month? The format is straight forward.

minute hour day_of_month month weekday command
0 9 28 * * /tmp/somescript.sh 1>/dev/null 2>/dev/null

RGDS

dawaves wrote:
Quote:
It does not seem that AIX can support Cron Step Values. Is this true?

I want to set up a recurring job where a certain script will run every
28 days. I know that step values can take care of this problem but
whenever I try to do a cronjob, it does not work.

For example:

-------------------------------------------------------------------------------
#crontab -e


.
.
.
.
0 9 10/28 7 * /tmp/somescript.sh 1>/dev/null 2>/dev/null



"/tmp/crontabB-Ajqa" 44 lines, 1783 characters
A line of the crontab file:

0 9 10/28 7 * /tmp/somescript.sh 1>/dev/null 2>/dev/null

contains the following error:

0481-079 Reached a symbol that is not expected.
#


---------------------------------------------------------------------------------------

Any ideas as to how to go about getting this job going?

Thanks!
Back to top
Centurion
*nix forums beginner


Joined: 02 Mar 2005
Posts: 28

PostPosted: Tue Jul 04, 2006 6:37 am    Post subject: Re: Cron : Step Values Reply with quote

mrkhairy@yahoo.com wrote:
Quote:
dawaves wrote:
It does not seem that AIX can support Cron Step Values. Is this true?

I want to set up a recurring job where a certain script will run every
28 days. I know that step values can take care of this problem but
whenever I try to do a cronjob, it does not work.

For example:

-------------------------------------------------------------------------------
#crontab -e
0 9 10/28 7 * /tmp/somescript.sh 1>/dev/null 2>/dev/null



"/tmp/crontabB-Ajqa" 44 lines, 1783 characters
A line of the crontab file:

0 9 10/28 7 * /tmp/somescript.sh 1>/dev/null 2>/dev/null

contains the following error:


only on 28th every month? The format is straight forward.

minute hour day_of_month month weekday command
0 9 28 * * /tmp/somescript.sh 1>/dev/null 2>/dev/null

RGDS

(Don't top post)

But the 28th of each month is not the same as every 28 days.

For the OP, in the past when I've hit these problems I've moved the
timing logic out to the script and use cron to simply trigger the job at
some fraction interval of the desired. IOW, 28 days = 4*7. Cron CAN
trigger a job once every 7 days.

So you run the job every Sunday (for instance) and the job checks to see
if it has been 28 days since the last execution (or if this is the 4th
time it's been called by cron, etc) - *how* to do this in the job/script
is an exercise for you. It's not perfect, but it will achieve the
desired result.

FWIW, I haven't hit this problem in a long time as I've spent the last
few years running Solaris and other open source Unix clones (which will
remain unmentionable Razz). Prior to that I did a fair bit of work with
AIX, so my apologies if my AIX advice isn't 100% current :)

HTH,

James
Back to top
florian.heigl@gmail.com
*nix forums beginner


Joined: 17 Jul 2005
Posts: 24

PostPosted: Tue Jul 04, 2006 4:55 pm    Post subject: Re: Cron : Step Values Reply with quote

dawaves schrieb:

Quote:
It does not seem that AIX can support Cron Step Values. Is this true?

I want to set up a recurring job where a certain script will run every
28 days. I know that step values can take care of this problem but
whenever I try to do a cronjob, it does not work.

Doesn't work on HP-UX and AIX for all I know. Sorry.
Maybe the companies selling batch schedulers pay OS vendors not to
implement it. Smile
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Fri Sep 03, 2010 1:52 pm | All times are GMT
navigation Forum index » *nix » AIX
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts does the default constructor initialize values? NewToCPP C++ 12 Thu Jul 20, 2006 3:37 pm
No new posts converting array values to monomaniac21 PHP 11 Thu Jul 20, 2006 10:17 am
No new posts what step need to configure postgres for java application deepak pal PostgreSQL 2 Wed Jul 19, 2006 10:40 am
No new posts Must GET/POST Parameters Have Values? (And What is the Sy... David T. Ashley PHP 2 Wed Jul 19, 2006 1:10 am
No new posts number of distinct values in tsearch2 gist index Kevin Murphy PostgreSQL 0 Tue Jul 18, 2006 5:24 pm

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum |  email marketing service
 
Sponsors: Sat Navs | Loans | Debt Help | House Insurance | Breast Enlargement
Privacy Policy
[ Time: 0.7190s ][ Queries: 17 (0.6708s) ][ GZIP on - Debug on ]