LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-24-2004, 12:48 PM   #1
Clubber Lang
LQ Newbie
 
Registered: Sep 2004
Location: Seattle, WA
Posts: 6

Rep: Reputation: 0
Cool Cron is not outputting log files...


Newbie to the site here and semi-newbie with Linux. I have a question regarding CRON. I currently have a Windows 2000 system with CYGWIN installed. CRON is working on the system and is able to run basic commands and Shell Scripts. However, I have a semi-large Bash Shell Script that runs several TCL/TK scripts and Windows applications. When I run the Shell Script with CRON I am failing to see any of the output files created by my TCL scripts and Windows Applications. When I run the Shell Script manually from CYGWIN it runs perfect.

Here is the line I have in my CRONTAB:

0 11 * * * . /tmp/NiteBld.sh

After reading other sites, it looks like I might have a problem with the environment variables CRON is using, which differ to what CYGWIN might have setup. Is there a way I can mirror my normal environment variables to CRON?

Also, I have read that I might be running into a file permissions problem. I have CHMOD all of the folders that will have output logs written to, but with no luck.

Please let me know if you would like to view the Shell Script. However, I know that the Shell Script is correct when run manually.

Any information I could get on this would be GREATLY appreciated.

Thanks a bunch,

Clubber Lang
 
Old 09-24-2004, 01:34 PM   #2
Clubber Lang
LQ Newbie
 
Registered: Sep 2004
Location: Seattle, WA
Posts: 6

Original Poster
Rep: Reputation: 0
In addition...

I have been reading through some of the other threads on this forum. My problem seems to be very similar to this one:

http://www.linuxquestions.org/questi...hlight=crontab

In bjdea1's final response he stated the following:

Quote:
sorry I found the cause. I have the main config file being accessed as "./config.file". No wonder everything else is failing because this config file is not being read at the very start of the program. Sorry I should have checked this more, thanks for your help.
Since I am new this this, how is he accessing this config file? I do not have a /var/spool/cron directory. When I type the "su" command it reads: "su: user root does not exist". I also do not have a file in the /etc/crond.daily/ directory like wolf2554 mentions. It seems this is a very simple problem. I just don't know how to fix it...

Last edited by Clubber Lang; 09-24-2004 at 01:53 PM.
 
Old 09-27-2004, 05:41 AM   #3
Clubber Lang
LQ Newbie
 
Registered: Sep 2004
Location: Seattle, WA
Posts: 6

Original Poster
Rep: Reputation: 0
Unhappy

BUMP.

Still having some problems. Any help would be appreciated.

Clubber Lang
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Does cron have a log I can read? ivj Linux - Software 2 08-18-2005 07:23 PM
cron log empty plisken Slackware 2 11-17-2004 10:00 AM
Can't get Cron to log anything t3___ Linux - Newbie 3 05-19-2004 11:14 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 03:30 PM
Can log files be time stamped? (such as FTP login and transfer log files) bripage Linux - Networking 6 08-08-2002 11:55 PM

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

All times are GMT -5. The time now is 02:03 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