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 musing on the Monastery: (11)
As of 2015-07-29 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls