Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Performance issuesby spmlingam (Scribe) |
on Nov 29, 2008 at 05:40 UTC ( [id://726733]=note: print w/replies, xml ) | Need Help?? |
You can use this idea: First convert your bash script into Perl script, keep the process id of this script in to a file. Write another perl script with modules Proc::ProcessTable::Process & Sys::Info::Device::CPU Here you can get the CPU consumption of first script using the process id of the above script. You can issue stop and continue from this script to the first script based on the CPU load
In Section
Seekers of Perl Wisdom
|
|