cron job
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > cron job




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    cron job  
capeme


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-25-06 06: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






[ Post a follow-up to this message ]



    Re: cron job  
Chris F.A. Johnson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-25-06 06: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





[ Post a follow-up to this message ]



    Re: cron job  
capeme


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-25-06 06: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






[ Post a follow-up to this message ]



    Re: cron job  
capeme


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-06 12:15 AM

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






[ Post a follow-up to this message ]



    Re: cron job  
Chris Matras


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-06 12:15 AM

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: 





[ Post a follow-up to this message ]



    Re: cron job  
Chris F.A. Johnson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-06 12:15 AM

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





[ Post a follow-up to this message ]



    Re: cron job  
Logan Shaw


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-06 06: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





[ Post a follow-up to this message ]



    Re: cron job  
Tintin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-06 12:17 PM


"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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:26 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register