Results 1 to 3 of 3
  1. #1

    5 second cronjob?

    Well, I wand to un a .sh every 5 seconds, how is it possible in crontab?

    5 * * * * sh /home/apachecheck.sh


    Is what I have at the moment, doesn't appear to be working... at all.

  2. #2
    * * * * * sh /home/apachecheck.sh

    would do it every minute. which is the most cron can do.

    You could then write in apachecheck.sh a loop that executes your commands and pauses for 10 seconds or so.
    Off Topic Web Forum - A forum for talking about anything!!
    N.Z. Webmaster Community - Are you from New Zealand? Well signup to our forum!!!!

  3. #3
    Join Date
    Oct 2002
    Posts
    705
    Yeah the best solution would be to put a 5 second sleep then loop back to the top of the script.
    ServerMatingProject.com
    The World's first server mating experiment
    We give new meaning to I/O intensive and hot swap

Posting Permissions

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