CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Daemon

 



Vlhadv
Novice

Oct 17, 2007, 2:14 AM

Post #1 of 4 (1558 views)
Daemon Can't Post

I wanted to make a daemon in linux to check files having .csv file extension on a certain directory and parse them afterwhich. This should be done every time the directory is updated or added with a new file. I haven't started my code yet and i had already found several examples pertaining to daemon in the web. Those examples uses the same routine in entering the actual daemon mode, which is

while(1){

<statements>

sleep(10);

}

Question: Is this the standard? Are there any other ways in entering the actual daemon code? Your opinion will be of much help...


KevinR
Veteran


Oct 17, 2007, 3:05 AM

Post #2 of 4 (1556 views)
Re: [Vlhadv] Daemon [In reply to] Can't Post

That is a very common way to make a perl program that runs continuously (a deamon). It might be considered "the standard" way of doing it. It is not somehing I have ever needed to do very often but it is the way I do it when I want to keep a perl program running.
-------------------------------------------------


Vlhadv
Novice

Oct 17, 2007, 10:48 PM

Post #3 of 4 (1548 views)
Re: [KevinR] Daemon [In reply to] Can't Post

I don't have any choice then. thanks again kevin.... is there anyway i can also help here in this forum??? can i answer inquiries here??


KevinR
Veteran


Oct 17, 2007, 11:14 PM

Post #4 of 4 (1547 views)
Re: [Vlhadv] Daemon [In reply to] Can't Post

There are no active moderators or administrators of this forum to ask how you could help in other ways, so aswering questions is the only way.
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives