Results 1 to 2 of 2

Thread: how and where to create a cron job

  1. #1

    how and where to create a cron job

    :? I'm working in RedHat-Release 7.2. I'm monitoring our httpd processes on our web servers. I have created a small script using the uptime command, date and grep. However i'm having to run this every 5 to ten minutes manually. I would really like to have a cron job run this for me every 5 minutes and i really don't completely get how to get it done from reading my redhat bible. Can somebody give me a hand asap, Please?
    Thx in advance - Caligal - ops: :roll:

  2. #2
    Hi caligal,

    I think this suitable command as per u'r need,

    watch --interval=10 ps -eaux | grep httpd

    the above command will watch httpd daemon for every 10 secs...U can change the time setting according to u.


Similar Threads

  1. how to write cron job
    By anu2 in forum General Chat
    Replies: 1
    Last Post: 03-02-2007, 12:28 PM
  2. cron job
    By pinehead in forum Linux - General Topics
    Replies: 1
    Last Post: 08-12-2004, 11:19 PM
  3. rsync+cron help
    By Ashcrow in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 05-05-2003, 01:46 PM
  4. New to the Cron method need help please!
    By Rastar in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 03-27-2003, 12:27 AM
  5. Help with Cron
    By Baldy in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 05-23-2002, 01:51 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts