Daemon::SimpleDaemon::Simple is a Perl extension for making script as daemon with start|stop controlling. | |
Download |
Daemon::Simple Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- HyeonSeung Kim
- Publisher web site:
- http://search.cpan.org/~khs/Daemon-Simple-0.02/lib/Daemon/Simple.pm
Daemon::Simple Tags
Daemon::Simple Description
Daemon::Simple is a Perl extension for making script as daemon with start|stop controlling. Daemon::Simple is a Perl extension for making script as daemon with start|stop controlling.SYNOPSIS use Daemon::Simple; Daemon::Simple::init($command); or Daemon::Simple::init($command,"~/"); or my $homedir = `pwd`; chomp($homedir); my $pidfile = "/var/run/ffencoder.pid"; my $command = $ARGV; Daemon::Simple::init($command,$homedir,$pidfile); ## Daemon script ## open(FILE,">out.txt"); select(FILE); sleep(10); close(FILE); __END__ # in shell $ perl foo.pl start $ perl foo.pl stopThis module is good for making a script as a daemon. A daemon script has start|stop controlling command. It is simple by adding Daemon::Simple::init() on first line of script.This module is implemented by wrapping Proc::Daemon. Requirements: · Perl
Daemon::Simple Related Software