Title: RE: [Perl-unix-users] daemon program in Perl

Try,

#!/usr/bin/perl -w
use strict;
my $pgrp = getpgrp;
print "Initial process group $pgrp\n";
$pgrp = setpgrp(0,0);
print "New process group $pgrp\n";


You probably want to tidy up stdin stdout and stderr etc. and all the other standard daemon stuff.

Steve Aaron



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 9:47 AM
To: [EMAIL PROTECTED]
Subject: [Perl-unix-users] daemon program in Perl


Dear,

Is there anyone who has ever used to create a daemon program in Perl?
I like to create one which heavy requests from web clients can be processed.
But my friends say it's not good.

They have mainly 2 reasons.
One is Perl is so invented to process input data & transform, then put out
as a kind of filter. It's not fit to a daemon or a server program.
Another is they don't hear from such a people creating daemon programs.
It is likely unstable, not trustable.
C language is better in such a situation.

In my company we developping system mainly by java, but I don't think
I can create such a daemon in java. I'm new to java.
I think I can make it with Proc::Daemon, HTTP::Daemon or so.

My env.
Solaris 8
Perl 5.005

Best Regards,

Hirosi Taguti
[EMAIL PROTECTED]
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to