LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-11-2004, 04:50 PM   #1
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Rep: Reputation: 30
Running a program automatically by the clock?


I run a RH9-based text-only server and I wanna run chkrootkit every now and then automatically. The program basically checks for worms and traces of aliens trying to gain root access of the server. How would I be able to make my server automatically take this into action at power-on? I would like it to run the program every hour, day, or something like that.

Thanks!
 
Old 07-11-2004, 04:51 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
use cron
 
Old 07-11-2004, 05:11 PM   #3
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
Okay, I man paged it and googled it, then added this to my crontab:

0 * * * * root /usr/src/chkrootkit*/chkrootkit

How's this look? If I did it correctly, it should be set to run every hour.

How can I make crond pick up on this addition to the configuration? Is there a way I can restart it or does it just figure it out on its own?
 
Old 07-11-2004, 09:41 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
1. "Cron" should figure it out on its own.

2. Typically the easiest way to update the crontab (on a per-user basis) is:

a) Log in (or "su") to the user meant to execute the cron job
b) "crontab -e" to edit the file

Anyway, it looks like your syntax is correct, and that it should work as you expect.

Your .. PSM
 
Old 07-12-2004, 05:38 AM   #5
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
Nice! It works great! Thanks all!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clock continually running too fast Zoombie Linux - Software 2 07-09-2005 01:22 PM
quick q: KDE + KDM: automatically running a program after login atom Linux - Software 2 04-12-2005 08:50 AM
The clock is running too fast satimis Linux - Hardware 4 03-19-2004 09:23 PM
Gnome Clock is Missing a Program? Please Help Me thank You! MystikMitch Linux - Software 1 10-20-2003 06:10 PM
inaccurate clock when machine running ashw Slackware 1 05-18-2003 05:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:04 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