LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2004, 03:15 PM   #1
t3___
Member
 
Registered: Sep 2003
Posts: 240

Rep: Reputation: 30
Cron - not creating log file


I am trying to enable logging for cron. I edited my crontab file (as root) and added the CRONLOG=YES (in all caps) switch.

My question is where the hell is the log file? All the documentation I can find indicates that it should be in /var/cron.... I dont have that directory or a file called cron in var. I ran a systemwide search for cron.log, and another for any file containing text that I am certain would appear in the log file.

any help would be greatly appreciated.
 
Old 02-24-2004, 03:33 PM   #2
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
I am running slackware and fedora, so it may be in different spot. But in both of my systems it is located in /var/log/ It is called cron. Last weeks is cron.1 , 2 weeks ago is cron.2, etc.
 
Old 02-26-2004, 06:13 PM   #3
t3___
Member
 
Registered: Sep 2003
Posts: 240

Original Poster
Rep: Reputation: 30
no such log files on my box...

comon guys.... this one should be pretty straight forward

any other suggestions?
 
Old 02-26-2004, 06:50 PM   #4
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
find / | grep -i cron

that should find any file/directory with the word cron in it. I found a cron.conf on my system where I could set the cron logfile

I think you have to run that command as root to traverse through everything.

Last edited by benjithegreat98; 02-26-2004 at 06:56 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a log file to post to corfrm all components for dvd plaback cjae SUSE / openSUSE 1 07-12-2005 05:36 PM
Creating the log-file dr_sad Programming 5 04-12-2005 05:01 PM
cron 'test' message in my /var/log/messages file visaris Linux - Newbie 1 12-13-2004 04:03 PM
Creating a Log file nguye103 Linux - Newbie 1 10-21-2004 06:16 PM
Creating a log file in unix?? linux_dejan Programming 3 09-03-2004 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration