LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-07-2009, 09:10 AM   #1
lapidarynewbie
LQ Newbie
 
Registered: Jun 2009
Posts: 17

Rep: Reputation: 0
Cron Job Problem and Questions


Not sure this belongs here are, perhaps in a Mysql forum. It crosses both subject lines. (I'm also fairly new at Linux, or, at least, I don't work with it consistently enough to be more than a fairly elementary user/administrator.)

We recently ported several applications from a RHEL 5.x installation to a CentOS 5.3 installation. A couple of thes apps use Mysql. We replicated the cron jobs from the old installation. These seem to be "system" cron jobs as they are not attached to a specific user. The weekly cron jobs, or, at least, the logrotate one, seems to run fine as logs do get rotated. However, there is a dump.sh job in cron.mysqldump that is supposed to run each day but, rather than producing proper dump files, produces files of size zero. The dump.sh runs fine interactively.

So, what might be the problem?

Also, two other questions:

1. If a new script, etc. is added to a particular cron folder, should the crond service be restarted to be sure that script will also run?

2. How does one change the "system" cron job timing parameters? We would like to change the time these jobs run to be sure they run before the daily backups.

Many thanks in advance for your help!

RichLich

Last edited by lapidarynewbie; 08-07-2009 at 09:10 AM. Reason: Add "thank you"
 
Old 08-07-2009, 09:52 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Quote:
Originally Posted by lapidarynewbie View Post
1. If a new script, etc. is added to a particular cron folder, should the crond service be restarted to be sure that script will also run?
I don't think restarting crond in required to sure script will run.

To edit system crond timing edit
/etc/crontab file

Thanks
 
Old 08-07-2009, 09:53 AM   #3
lapidarynewbie
LQ Newbie
 
Registered: Jun 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Many thanks!
 
  


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
Cron Job Problem imkornhulio Linux - Server 4 08-30-2008 10:50 PM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 09:16 AM
cron job questions heeru Linux - Software 2 03-31-2006 07:47 AM
cron job questions.... chunlee Linux - Software 1 02-18-2005 06:51 AM
Cron Job Problem Corellon Linux - Software 4 08-12-2003 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration