Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Executing script in normal/daemon mode and adding start/stop capability

by ELISHEVA (Prior)
on Oct 07, 2009 at 11:12 UTC ( #799689=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    eval {
      # my stuff ...
    ...
    } or do {
      # what you are currently putting inside if ($@) {...} goes here.
    }
    
  2. or download this
    if($opt_daemon) {
       # ... intro stuff
    ...
         $log->error("unable to insert data");
      }    
    }
    
  3. or download this
    sub runMailHandler {
      my ($opt_mailid) = @_;
    ...
    } else {
      runMailHandler($opt_mailid);
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2014-11-26 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (169 votes), past polls