The smallest granularity of cron is 1 minute. In order for something to run more often, you need to control it in the script.
How long does the 05-1.txt take to run (BTW, that's a very unusual name for a shell script)
What you can do is create a controlling script continuously runs and fires off the script every 15 seconds, eg:
#!/bin/sh
while true
do
/bin/sh /var/www/xxxvhosts/100at.c
sleep 15
done
Note, that you'll start to get into problems if 05-1.txt takes longer than 15 seconds to run.
Alternatively, you could just run it one after another, eg:
#!/bin/sh
while true
do
/bin/sh /var/www/xxxvhosts/100at.c
sleep 10 # Either keep this in here or comment it out.
done
Main Topics
Browse All Topics





by: nociPosted on 2007-04-23 at 14:18:41ID: 18961581
How about a job like:
om/httpdoc s/05-1.txt om/httpdoc s/05-1.txt
run-every-minute.sh
---8<---
#/bin/sh
for i in 0 1 2
do
/bin/sh /var/www/xxxvhosts/100at.c
done
/bin/sh /var/www/xxxvhosts/100at.c
---8<---
and replace the cron entry mutatis mutandis with this run-every-minute script.
(The above version run 4 times with 15 second pauses.