Please bottom post...

> CRON the one and the best solution to all your problems.
> 

I doubt cron will handle "all your problems"...

> For example if you want to execute a job
> /home/home_dir/abcxyz/getdata.pl every one hour here is what you do.
> 
> (1.) At UNIX $ prompt do a crontab -e
> (2.) It opens a writable file (Mostly in "vi" unless ofcourse you have
> not changed nay settings for Cron)

Most cron's use the EDITOR environment variable to decide.

> (3.) Add this line to the file "0 * * * *
> /home/home_dir/abcxyz/getdata.pl"
> (4.) save the file 
> 
> You are done. What this would do is to run the job getdata.pl every hour
> of every day. So modify getdata.pl as per your requirements and leave
> the rest to UNIX Kernel.

The Unix kernel isn't really closely involved here. cron is just a
service in user land that generally gets started at boot time.

> 
> Hope this helps.
> 
> Nandu

http://danconia.org

> 
> -----Original Message-----
> From: Ishwor [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 15, 2004 9:03 AM
> To: Perl Beginners List
> Cc: Budi Santosa
> Subject: Re: time managing
> 
> 
> I am not a guru for Unix or Perl but i suppose u could to write a call
> to a function that
> * Pulls the job
> * wait for an hour after every pull? maybe using something like wait()?
> If anyone else could give a pointer on how to do the second point. Would
> be great. Cheers
> 
> On Wed, 15 Sep 2004 09:35:01 -0400 (EDT), Chris Devers
> <[EMAIL PROTECTED]> wrote:
> > On Wed, 15 Sep 2004, Budi Santosa wrote:
> > 
> > > What do you mean with a cron job?
> > 
> > You're going to have to take some initiative to figure some of these 
> > things out with a search engine. Here's the first hit when you put 
> > "cron" into Google:
> > 
> >    <http://www.unixgeeks.org/security/newbie/unix/cron-1.html>
> > 
> > This is fundamental Unix knowledge. Maybe it would help to have a copy
> 
> > of a good manual handy. There are a lot of good books out there, but I
> 
> > particularly liked _Unix Power Tools_ when I was getting started, and 
> > I still like the current version of it now.
> > 
> > --
> > Chris Devers
> > 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to