From: Conor Daly (conor.daly at domain oceanfree.net)
Date: Thu 30 Aug 2001 - 09:34:59 IST
On Wed, Aug 29, 2001 at 04:40:58PM +0100 or so it is rumoured hereabouts,
Steffen Higel thought:
> On Wed, Aug 29, 2001 at 04:35:35PM +0100, Paul Askins articulated:
> > Hi,
> > I'm looking for a way to run a program or command periodically, but not
> > using cron. Basically what I'm after is something that will run the
> > command, go to sleep for say 10 minutes or some set time and then wake up
> > and run the command again, and so on. Anybody got any ideas? A
> > shell/perl script perhaps?
> Like this:
> while(true); do
> sleep 600
> echo "hello"
Or, you could go with "at". Something like:
echo "hello there" # had to do more than Steffen's script eh?
at now + 10 minutes << ATEND
It's probably not so useful for an "every x minutes" task but it really
gets into its own when you use it to have a job submit itself to run at
the same time tomorrow and stuff.
-- Conor Daly <conor.daly at domain oceanfree.net> Domestic Sysadmin :-) --------------------- Faenor.cod.ie 11:55pm up 76 days, 14 min, 0 users, load average: 0.00, 0.00, 0.00 Hobbiton.cod.ie 11:54pm up 76 days, 47 min, 2 users, load average: 0.08, 0.04, 0.01
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:53 GMT