Hello

the section below was coded specifically for ASSP running on 
centos/redhat  os *only*;
I think anyone can suggest corrections for other os .

Graziano

foreach my $file (@files) {
       
#  sleeping214
my $count2=($count/300);
if(($count2 =~ /^-?\d+$/) and ($count2!="0") )
{
my $check_sleep=substr(`grep "" /proc/loadavg | awk '{print\$1}'`, 0, -1);
if ($check_sleep>3) {
print "\n\nSleeping 60 seconds, server load ($check_sleep) is over 3 ...\n";
sleep (60);
}

my $check_sleep=substr(`grep "" /proc/loadavg | awk '{print\$1}'`, 0, -1);
if ($check_sleep>3) {
print "\n\nSleeping 120 seconds, server load ($check_sleep) is over 3 
...\n";
sleep (120);
}
}
#end#



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to