*BSD News Article 84811


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!mn6.swip.net!plug.news.pipex.net!pipex!hole.news.pipex.net!pipex!bowl.news.pipex.net!pipex!usenet
From: geoff.cox@dial.pipex.com (Geoff Cox)
Newsgroups: comp.unix.bsd.misc
Subject: localtime - how does it work?
Date: Mon, 16 Dec 1996 09:23:09 GMT
Organization: Micro Active
Lines: 23
Message-ID: <32b8149a.2202642@newnews.dial.pipex.com>
Reply-To: geoff.cox@dial.pipex.com
NNTP-Posting-Host: ak195.du.pipex.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent .99g/32.339
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.misc:1830

Hello,

I am trying to write a little perl code so that I can read from a file
on a unix web server each day at say 13.00 hrs and email the contents
to someone.......

How do I do this?  I have only remote access to this computer so I
guess that I can start the script as a background program with 

./code.pl &

and log off, but not clear how to use localtime etc. I guess again
that I need to set a loop going which looks at the time (hours) and
when it sees 13 it jumps out and opens the file etc and then
overwrites the file and waits for the next 13...?

Would appreciate an email copy of any thoughts....

Cheers

Geoff