Cool, I was thinking about doing this Dean .. how about
#!/usr/bin/perl
while() {
sleep(60);
`theprogram`;
}
Is there any reason why fork is better ? Why the sub ? You must come from some
kind of structured language environment :)
Regards, Matt
On Thu, 06 Jul 2000, you wrote:
> #!/usr/bin/perl
>
> fork(&myprog) && die;
>
> sub myprog {
>
> while (1 = 1) {
>
> ...
> ....
> ....
>
> sleep(60);
>
> };
>
> };
>
>
> something like that
>
> Dean
>
>
> Matt wrote:
> >
> > Hello Sluggers ..
> >
> > What would be the best way to run a perl script (or shell script) every 60
> > seconds all the time, since boot time ?
> >
> > Has Cron always been strict with the hourly, weekly, daily etc ? There isn't a
> > away of getting a "minutely" is there ? :)
> >
> > Regards, Matt
> > --
> > SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
> > To unsubscribe send email to [EMAIL PROTECTED] with
> > unsubscribe in the text
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text