LinuxQuestions.org
Visit Jeremy's Blog.
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, 10: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-25-2003, 11:17 PM   #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, 10:22 PM   #3
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

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

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

All times are GMT -5. The time now is 12:16 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
Open Source Consulting | Domain Registration