The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
crontab problem DebianJ UNIX for Advanced & Expert Users 11 05-22-2009 01:56 AM
Crontab problem jess_t03 AIX 3 05-22-2009 01:42 AM
problem with crontab cleansing_flame UNIX for Dummies Questions & Answers 1 01-29-2008 08:02 PM
Problem with crontab cleansing_flame UNIX for Dummies Questions & Answers 3 01-14-2008 04:03 PM
Run crontab job problem ust UNIX for Advanced & Expert Users 3 07-23-2007 09:45 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-12-2005
Zak Zak is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 31
Problem with Crontab

I have a server running 5.9 and I'm trying to cron in the following.

00 01 * * 7 cd /data/apache/logs && find . -type f -name "access.*" -mtime +1 -print |xargs rm > /dev/null 2>&1

But I keep get the following error....

00 01 * * 7 cd /data/apache/logs && find . -type f -name "access.*" -mtime +1 -print |xargs rm > /dev/null 2>&1
crontab: error on previous line; number out of bounds.
crontab: errors detected in input, no crontab file generated.

Any help will greatly appericated.

Thanks,

Zak
  #2 (permalink)  
Old 12-12-2005
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,953
Quote:
Originally Posted by Zak
But I keep get the following error....

00 01 * * 7 cd /data/apache/logs && find . -type f -name "access.*" -mtime +1 -print |xargs rm > /dev/null 2>&1
day of the week ranges between 0 - 6
0 - sunday
6 - saturday
  #3 (permalink)  
Old 12-20-2005
Zak Zak is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 31
oh bugger... so sorry for such a silly post!!!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0