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



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 !!

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-28-2006
Registered User
 

Join Date: Jul 2006
Posts: 1
Angry cron not working

Cron does not seem to work with this crontab. Any ideas?

# run-parts
# commands to execute every hour
01 * * * * root run-parts /etc/cron.hourly
# commands to execute every day
02 4 * * * root run-parts /etc/cron.daily
# commands to execute every week
22 4 * * 0 root run-parts /etc/cron.weekly
commands to execute every month
42 4 1 * * root run-parts /etc/cron.monthly

Also I deleted the cron logfile in var/log. How do I get cron to make/start a new one?

Dale Cabell
***Email address deleted

Trying to execute this script once a day
#!/bin/sh
HOST_NAME=`uname -n`
if [ ! -e /var/lib/tripwire/${HOST_NAME}.twd ] ; then
echo "**** Error: Tripwire database for ${HOST_NAME} not found. **
**"
echo "**** Run "/etc/tripwire/twinstall.sh" and/or "tripwire --init". **
**"
else
test -f /etc/tripwire/tw.cfg && /usr/sbin/tripwire --check
fi


Works fine from command line

/etc/cron.daily/tripwire-check

Last edited by reborg; 07-28-2006 at 08:14 PM.. Reason: eamil address
Sponsored Links
  #2 (permalink)  
Old 07-28-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,361
Dale, we do not allow posting of email addresses here.

You should take a look at the answers to frequently asked question section. Where we have a whole section dedicated to "Works fine from the command line but not from Cron"
Sponsored Links
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 Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cron not working manna UNIX for Dummies Questions & Answers 1 01-10-2008 02:04 PM
Cron job not working dkranes UNIX for Dummies Questions & Answers 5 10-26-2007 12:01 PM
Cron not working? christo16 UNIX for Dummies Questions & Answers 5 03-09-2007 02:55 AM
Cron job not working janavenki Shell Programming and Scripting 7 03-10-2004 12:36 PM
CRON - How to tell it's working? jaffy1229 UNIX for Dummies Questions & Answers 7 04-15-2002 01:09 PM



All times are GMT -4. The time now is 04:51 PM.


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-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0