Re: [EMAIL PROTECTED] lower cpu priority to perl scripts

2008-08-28 Thread Audio Phile
Thanks to all who replied. Richard, your solution works great. I didn't realize this was a script-specific mod. I thought there would be a setting in an apache2.conf or something on the FS. I'm very glad to have learned this. Thanks again! Richard de Vries wrote: If you are running on unix,

Re: [EMAIL PROTECTED] lower cpu priority to perl scripts

2008-08-28 Thread Richard de Vries
"\n"; $intRC = $objWMIProcess->SetPriority($intPriority); if ($intRC == 0) { print "Successfully set priority.\n"; } else { print 'Could not set priority. Error code: ' . $intRC, "\n"; } ----- Original Message ---- From: david <[EMAIL PROTECTED]&

Re: [EMAIL PROTECTED] lower cpu priority to perl scripts

2008-08-27 Thread david
From: Audio Phile <[EMAIL PROTECTED]> To: users@httpd.apache.org Sent: Wednesday, August 27, 2008 2:18:53 PM Subject: Re: [EMAIL PROTECTED] lower cpu priority to perl scripts Tamer, Thank you very much for the reply. I googled around for the proper syntax of your suggestion as well as which conf

Re: [EMAIL PROTECTED] lower cpu priority to perl scripts

2008-08-27 Thread Richard de Vries
r script's process ID, and "20" denotes the priority. (as you know, -20 is highest priority and 20 the lowest priority). Cheers,    R. - Original Message From: Audio Phile <[EMAIL PROTECTED]> To: users@httpd.apache.org Sent: Wednesday, August 27, 2008 2:18:53 PM Subject:

Re: [EMAIL PROTECTED] lower cpu priority to perl scripts

2008-08-27 Thread Audio Phile
Tamer, Thank you very much for the reply. I googled around for the proper syntax of your suggestion as well as which config file I need to edit with it, but I came up with a big fat 0. Can you provide a few more details for me? Apologies in advance, I am a newbie with apache2 :) Tamer Embab

RE: [EMAIL PROTECTED] lower cpu priority to perl scripts

2008-08-27 Thread Tamer Embaby
Audio, You can always start your scripts with [re]nice() syscall to lower your process (perl script in this case) priority. Regards, Tamer -Original Message- From: Audio Phile [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2008 8:57 PM To: users@httpd.apache.org Subject: [EMAIL PROT