LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-25-2003, 11:51 PM   #1
vwaldoguy
LQ Newbie
 
Registered: May 2003
Posts: 5

Rep: Reputation: 0
Old Crontab still Running


I've made several changes to a crontab file, by envoking the command, as the user:

crontab -e

The vi editor is the editor that started. I made changes, (added comment # markers, added new commands, etc). Then used :wq! to save.

However, even though I have several commands/scripts that have now been commented out, the scripts are still running. Thus, an old cron must still be installed somewhere, so how do I find this rogue crontab?

Regards,
Van
 
Old 07-26-2003, 12:17 AM   #2
vwaldoguy
LQ Newbie
 
Registered: May 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Just as a followup, I tried to remove the crontab alltogether, by envoking:

crontab -r

Then reinstating a new copy of the crontab by typing:

crontab crontab.entry

Also, it appears that the new commands I've installed are indeed running, but the scripts that I commented out are still running too.

# 04,34 * * * /script_to_run > /logfile 2>&1

for example is still running, even though it's commented out.

Regards,
Van
 
Old 07-26-2003, 11:22 PM   #3
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 247

Rep: Reputation: 31
Could it be that either root or another user also has a crontab file on the system which runs those commands?
 
Old 08-05-2003, 03:50 AM   #4
shaheen
LQ Newbie
 
Registered: Jul 2003
Location: India
Distribution: Red Hat 7.1
Posts: 27

Rep: Reputation: 15
stopping that old crontab

Hi,
crons generally run from specific users directory environments, so there could be a possibility that the same cron is installed in some other users environment. If that is still not the case , i assume you know that name of the scripts that are running, just rename them or move them to other directory. This will not enable the scripts to be fired. But this is risky since the job could be a email sender (i m not sure , just a general scenario) and the sendmail can crash trying to run the program.. But i suggest you try to look into other users crontabs ...

Hope this works , do let me know , All the best
Shaheen
 
  


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
how to include x server when running crontab buffalokml Linux - General 2 11-08-2005 11:58 AM
crontab jobs aren't running mdm_linux Linux - General 4 05-30-2005 01:27 PM
error running script on crontab haora Linux - Newbie 3 03-11-2005 05:02 PM
suspend running processes with crontab merlin23 Linux - Newbie 1 12-07-2004 04:09 AM
Running ssh from crontab cmfarley19 Linux - Software 1 01-23-2004 09:24 AM


All times are GMT -5. The time now is 10:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration