Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jul 2001 20:18:26 +0200
From:      "F. Xavier Noria" <fxn@retemail.es>
To:        freebsd <questions@FreeBSD.ORG>
Subject:   Re: Quick Question
Message-ID:  <3B51DE72.88F1AA4@retemail.es>
References:  <OCBBILMKOLJACEFBFIDJEEJPCBAA.reyn@commonroads.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Matt Winslow wrote:
> 
> Is there a way to make a PERL script run once every 10 minutes...

You can do it with Perl like this:

   while (1) {
       # your original code
       sleep 600;
   }

but the usual way to run something periodically is to let cron to do it.
Basically, one just needs to add a line with certain data in a text file
that appears executing crontab -e. See this nice intro

   http://www.superscripts.com/tutorial/crontab.html

and man cron, man crontab and man 5 crontab for the whole thing.

> And a real dumb question....once I go into SU mode...how do I get out?

Type `exit'.

> Slowly learning....

It's worth the effort :-), perhaps you would need to read something on
using Unix.

-- fxn


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B51DE72.88F1AA4>