Unix administration - cron job

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > October 2006 > cron job





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author cron job
capeme

2006-10-25, 1:28 pm

I am using the following cron entry to run a cron job every 4 hours and
it is rejecting it:
Any ideas?
0 */4 * * * /home/location/scriptname

Thanks

Chris F.A. Johnson

2006-10-25, 1:28 pm

On 2006-10-25, capeme wrote:
> I am using the following cron entry to run a cron job every 4 hours and
> it is rejecting it:
> Any ideas?
> 0 */4 * * * /home/location/scriptname


IIRC, some versions of cron require 0-59/4.

--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
capeme

2006-10-25, 1:28 pm

This is AIX.


Chris F.A. Johnson wrote:
> On 2006-10-25, capeme wrote:
>
> IIRC, some versions of cron require 0-59/4.
>
> --
> Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
> Shell Scripting Recipes: | My code in this post, if any,
> A Problem-Solution Approach | is released under the
> 2005, Apress | GNU General Public Licence


capeme

2006-10-25, 7:15 pm

would the entry be 0 0-59/4 * * * etc...
capeme wrote:[vbcol=seagreen]
> This is AIX.
>
>
> Chris F.A. Johnson wrote:

Chris Matras

2006-10-25, 7:15 pm

How's about 0 0,4,8,12,16,20 * * * ......

capeme wrote:[vbcol=seagreen]
> would the entry be 0 0-59/4 * * * etc...
> capeme wrote:
Chris F.A. Johnson

2006-10-25, 7:15 pm

On 2006-10-25, capeme wrote:[vbcol=seagreen]

[please don't top post]
[vbcol=seagreen]
> would the entry be 0 0-59/4 * * * etc...
> capeme wrote:

What does the man page say?

--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
Logan Shaw

2006-10-26, 1:31 am

> Chris F.A. Johnson wrote:
[vbcol=seagreen]
[vbcol=seagreen]

capeme wrote:[vbcol=seagreen]
> This is AIX.


Well, then it probably doesn't support the syntax that allows you to
add a "/" in one of the time fields, since this is a platform-specific
extension.

- Logan
Tintin

2006-10-26, 7:17 am


"capeme" <capeme@comcast.net> wrote in message
news:1161797915.375557.173410@b28g2000cwb.googlegroups.com...
>I am using the following cron entry to run a cron job every 4 hours and
> it is rejecting it:
> Any ideas?
> 0 */4 * * * /home/location/scriptname


man crontab



--
Posted via a free Usenet account from http://www.teranews.com

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com