[Chicago-talk] writing a log with Cron, Daemons, Perl

Ed Summers ehs at pobox.com
Fri Sep 5 15:02:04 CDT 2003

On Fri, Sep 05, 2003 at 02:53:28PM -0500, Paul Baker wrote:
>  use Net::Server::Daemonize qw(daemonize);
>  daemonize ("jstrauss","jstrauss","/home/jstrauss/test.pid");
>  open (STDERR,">/home/jstrauss/bin/test.log");
>  print STDERR "Help\n";
>  while (1) {
>    die "this will go to STDERR too!";
>  }

Interesting, I didn't know that unlike STDOUT and other filehandles STDERR is
set to autoflush by default. Definitely simpler.


More information about the Chicago-talk mailing list