Help for this page

Select Code to Download


  1. or download this
      $num_processes = `ps -ef | grep $process_name | grep -v grep | wc -l
    +`;
    
  2. or download this
    my $STOP_FILE = 'stopfile';
    
  3. or download this
    my $STOP_FILE = '/home/user/stopfile';
    
    ...
    STOP_FILE_PATH='/home/user';
    
    my $STOP_FILE = "$ENV{STOP_FILE_PATH}/stopfile";