Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 imbibing at the Monastery: (5)
As of 2015-08-30 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (348 votes), past polls