OK. Thanks.
I was wondering if this is something that I could simply write a
while loop that never meets the exit condition, and then simply check the
directory in question for files. If files exist, the "daemon" kicks off the
appropriate processing script and then deletes the file afterwards. If
there are no files, then the "daemon" simply sleeps for 30 seconds before
looking again. This seems like a very simple way of attacking the issue.
Any ideas fore or against?
Scott Nipp
Phone: (214) 858-1289
E-mail: [EMAIL PROTECTED]
Web: http:\\ldsa.sbcld.sbc.com
-----Original Message-----
From: James Edward Gray II [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 1:04 PM
To: NIPP, SCOTT V (SBCSI)
Cc: [EMAIL PROTECTED]
Subject: Re: Writing a daemon in Perl...
On Wednesday, September 24, 2003, at 12:58 PM, NIPP, SCOTT V (SBCSI)
wrote:
> I have written a group of Perl scripts that collects data and
> transfers it to a specific server via ftp. These scripts work great.
> I
> also have a couple of scripts that parse the data on the server and
> populate
> this data into a database. Once again, these scripts are working
> great.
> What I would like however is to write a daemon that runs continuously
> on the
> database server and populates the DB information as files arrive. I
> have
> never even thought of writing a daemon before, and I don't even know
> where
> to begin looking. Any advice would be most appreciated. Thanks in
> advance.
Network Programming with Perl, an excellent book, covers this very
topic thoroughly. I highly recommend it.
James
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]