Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Re: Re: How to run POE as a daemon

by hossman (Prior)
on Oct 02, 2002 at 00:39 UTC ( [id://202158]=note: print w/replies, xml ) Need Help??

in reply to Re: Re: How to run POE as a daemon
in thread How to run POE as a daemon

This is not a daemon:
while (1) { print "Enter a number: "; $Number = <STDIN>; chomp($Number); print "You entered - $Number.\n"; }
yet you would have me believe it is.

No, I don't consider that a daemon because it's actively soliciting information on a handle (or port, or file, etc...) as soon as it starts. I would however consider this to be a very simple daemon...

while (1) { $Number = <STDIN>; chomp($Number); print "You entered - $Number.\n"; }

...because it passively waits for a connection on a handle (or port, etc...) before doing anything. it's not a very useful daemon because it's single threaded ... but lots of daemons can run as single threads.

But none of this is really helping you achieve what you want, so i guess we'll just agree to disagree.

In the mean time, perhaps Proc::Daemon would be of interest to you?

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://202158]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-05-26 14:28 GMT
Find Nodes?
    Voting Booth?

    No recent polls found