in reply to Re^18: show a message only during the sleep time
in thread show a message only during the sleep time
................................................................... my $process = "ntop"; my $return = 'ps -eaf |grep $process |grep -v grep'; my $stop = '/usr/local/bin/sudo sh /usr/local/www/cgi-bin/ntop/ntop.sh + stop &'; if ($return ne "" ) { system ($stop) and die "..."; } sleep(8); my $start = system('/usr/local/bin/sudo /usr/local/www/cgi-bin/ntop/nt +op.sh start') and die "..."; ...................................................................
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^20: show a message only during the sleep time
by cc (Beadle) on Jul 27, 2005 at 21:17 UTC |