Help for this page

Select Code to Download


  1. or download this
    $ ./script.pl start
    started script.pl daemon at PID 30216
    
  2. or download this
    $ ./script.pl status
    script.pl is running at PID 30216
    
    $ ps ax | grep 30216
    30216 pts/4    S      0:00 perl script.pl perform
    
  3. or download this
    $ telnet localhost 6669
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    
  4. or download this
    blah
    received: blah
    
  5. or download this
    $ ./script.pl status
    script.pl is running at PID 30216
    
    $ ps ax | grep 30216
    30216 pts/4    S      0:00 perl script.pl perform
    
  6. or download this
    $ ./script.pl stop
    stopped script.pl PID 30216
    
  7. or download this
    $ ./script.pl status
    script.pl is not running
    
    $ ps ax | grep 30216
    
  8. or download this
    #!/usr/bin/perl
    use warnings;
    ...
        }
        return $pid;
    }