Lo, on Sunday, October 21, Theo Wribe did write:

> How do I create a crontab that run's #ping IP every 10 seconds?

I don't think this is possible, at least with the version of cron in
potato.

> Tried crontab -e
> 
> 0,10,20,30,40,50 * * * *        /bin/ping -s 8 -c 1 www.sunet.se 1>
> /dev/null 2> /dev/null
> 
> But it doesn't seem to work.

Nope.  That entry will run every 10 minutes.  I don't think the crontab
format allows you to specify seconds.  See crontab's manual page (in section
5) for details.

If you're not terribly concerned about the exactness of the timing, the
following should work nicely:

#!/bin/sh
while /bin/true
do
    /bin/ping -s 8 -c 1 www.sunet.se 1> /dev/null 2>&1
    /bin/sleep 10
done

Richard

Reply via email to