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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-25-2003, 10:51 PM
|
#1
|
LQ Newbie
Registered: May 2003
Posts: 5
Rep:
|
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
|
|
|
07-25-2003, 11:17 PM
|
#2
|
LQ Newbie
Registered: May 2003
Posts: 5
Original Poster
Rep:
|
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
|
|
|
07-26-2003, 10:22 PM
|
#3
|
Member
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251
Rep:
|
Could it be that either root or another user also has a crontab file on the system which runs those commands?
|
|
|
08-05-2003, 02:50 AM
|
#4
|
LQ Newbie
Registered: Jul 2003
Location: India
Distribution: Red Hat 7.1
Posts: 27
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 12:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|