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