in reply to Re: Catching Kill Process
in thread Catching Kill Process
{ local @SIG{'INT', 'TERM'} = (sub {warn 'Interrupt!'}) x 2; `$cmd -P ALL $interval >> $path`; }
This works the way I pictured it to, thank you! But for some reason it doesn't work for this one.
{ local @SIG{'INT', 'TERM'} = (sub {warn 'Interrupt!'}) x 2; `$cmd -P ALL $interval | timestamp.pl >> $path`; }
Processing mpstat-5_EDT Number of samples: 9 Processing iostat-5_EDT Number of samples: 50 Processing vmstat-5_EDT Number of samples: 0
And VM stat is the only one that runs with timestamp.pl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Catching Kill Process
by Jabox (Sexton) on Jun 25, 2014 at 15:03 UTC |