var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
cron job question
How do I check what crons are setup to run daily/weekly or what not. I was installed chkrootkit and set up 2 cron jobs not meaning to, I dont know how to remove one of them tho. Not such a big deal but it does get annoying with the emails.
You can check cron by running command "crontab -e" on the shell
If you have root ssh, check the crons set under /etc/cron.daily or /etc/cron.weekly too. Normally chkrootkit crons are added as /etc/cron.daily/chkrootkit.sh.
"crontab -l" would list all the crons set for the user you are running the command as.
For example, if you are logged in as a user called "doctor", the command would show all crons set for this user.
As the root user, you could give "crontab -l -u <user_name>" to list all crons of a particular user.
With "crontab -e", you can edit this. Also check the file "/etc/crontab".
Sr. Systems Engineer
We grow by helping you grow.
/var/log/cron.log file helps you to know the date and time of cronjobs executed. Browse thru the file to know if your cron has got executed.
you may also use the help of grep command to check this out. If your script is named as chkrootkit... use the command :
grep -i chkrootkit /var/log/cron.log
By netpox in forum Hosting Security and Technology
Last Post: 09-08-2008, 10:35 PM
By mrlayance in forum Hosting Software and Control Panels
Last Post: 12-23-2004, 01:25 AM
By Garrett in forum Hosting Security and Technology
Last Post: 09-25-2002, 11:40 AM
By MGCJerry in forum Hosting Security and Technology
Last Post: 07-12-2002, 05:24 PM
By v-rod in forum Hosting Security and Technology
Last Post: 03-30-2002, 07:12 AM