Managing Windows processes 2004-06-09 - By Aloys Baillet
Back If you have no time to learn python, I think Sebastian's solution may be better... But just in case : ActivePython propose only python 2.3.2, so if you want to be up-to-date, I would advice you to download python 2.3.4 on python.org. And yes, pywin32 is a python extension you can find on sourceforge. And finally, the demo script winprocess.py show you everything you want to know! you can run it from command line and by default it launches the windows notepad....
-- Aloys Baillet - R&D @ La Maison --
Sebastian Faber wrote:
>Hi Bernard, > >I don't know any solution with standard-DOS. But there is a small tool out >"nice.exe" which is a DOS implementation of the unix command. With this tool >you can change the prioprity of a running task - but you have to know the >process-ID (which you can get with ps.exe | grep xsi ....) > >nice.exe is freeware - you can download it at: > >http://members.ozemail.com.au/~markhurd/SomeProgs.html > >sebastian > > > > >-- --Original Message-- -- >From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf >Of Bernard Lebel >Sent: Wednesday, June 09, 2004 1:05 PM >To: XSI@(protected) >Subject: Re: [OT] Managing Windows processes > > >Thanks a lot Sebastian. > >Yes, I'm looking for a Windows solution. > >That said, do you know if you can lower the priority of an existing thread? > > >Thanks >Bernard > >-- -- Original Message -- -- >From: "Sebastian Faber" <sebastian.faber@(protected)> >To: <XSI@(protected)> >Sent: Wednesday, June 09, 2004 1:49 PM >Subject: RE: [OT] Managing Windows processes > > > > >>You can simply use the DOS-command "start" to excecute xsibatch. With >>"start" you can define the priority for xsibatch. The command in your >>xsibatch.bat would be something like that: >> >>start /low d:\Softimage\XSI_3.5.1\Application\bin\xsibatch.exe %1 %2 %3 %4 >>%5 %6 %7 %8 %9 >> >>you have different priorities like low, normal, high, realtime, >> >> >abovenormal, > > >>and belownormal >> >>do you have windows running? - with linux is it very easy too. >> >> >>sebastian >> >> >> >> >> >>-- --Original Message-- -- >>From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf >>Of Aloys Baillet >>Sent: Wednesday, June 09, 2004 12:17 PM >>To: XSI@(protected) >>Subject: Re: [OT] Managing Windows processes >> >> >>Hello Bernard, >> >>For our custom render manager, I use Python to execute a .bat file. With >>pywin32 I take the process handle and I use it to set the priority >>lower. And it works fine! >>For that I used a python script given in the pywin32 demo directory >>called winprocess.py. >>If you need more info, don't hesitate! >>Good luck! >> >>-- >>Aloys Baillet - R&D @ La Maison >>-- >> >> >> >>Bernard Lebel wrote: >> >> >> >>>Hello, >>> >>>I have a rather BIG problem. My renderfarm client resources are so taken >>> >>> >by > > >>>the rendering that they generate problem with the workgroup server. >>>Basically they don't answer properly to the server because their cpu is >>>through the roof all the time, and at one point this crashes the server. >>>Once the server is crashed, no more commands, toolbars, and most of all, >>>shaders. >>> >>>So my question goes like this: although you can manage the processes >>>manually to change the process priorities, is there a way to set >>> >>> >permanent > > >>>rules on these processes? For example, if I want to give XSIBatch a low >>>priority all the time, how can I do that? >>> >>>Any suggestion extremely welcomed. >>> >>> >>>Thanks >>>Bernard >>>--- >>>Unsubscribe? Mail Majordomo@(protected) with the following text in >>> >>> >body: > > >>>unsubscribe xsi >>> >>> >>> >>> >>> >>> >>--- >>Unsubscribe? Mail Majordomo@(protected) with the following text in body: >>unsubscribe xsi >> >>--- >>Unsubscribe? Mail Majordomo@(protected) with the following text in body: >>unsubscribe xsi >> >> >> >--- >Unsubscribe? Mail Majordomo@(protected) with the following text in body: >unsubscribe xsi > >--- >Unsubscribe? Mail Majordomo@(protected) with the following text in body: >unsubscribe xsi > > > > --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|