Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by ELISHEVA (Prior)
on Oct 07, 2009 at 11:12 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://799689]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found