Re: [python-win32] activate an opened window through the server

2009-04-24 Thread Tim Roberts
belaqziz salwa wrote: > I used subprocess.call but I had the following message: > > Could not import process : (-2147217405, 'OLE error 0x80041003', None, > None) > > ** I added this code to my process: > > cmd = 'idlde.exe -minimized -nodemowarn -noconfirmexit -nosplash > @C:\SAMIR\soil.ru

Re: [python-win32] activate an opened window through the server

2009-04-24 Thread belaqziz salwa
bprocess.call(cmd, 0, None, None) And I run it with: http://localhost/wps/wps.py?version=1.0.0&service=Wps&request=Execute&Identifier=soil_process but it does not works thanks for help --- En date de : Ven 24.4.09, Tim Roberts a écrit : De: Tim Roberts Objet: Re: [python-win32] a

Re: [python-win32] activate an opened window through the server

2009-04-23 Thread Tim Roberts
belaqziz salwa wrote: > yes my IDL script produces an image file, i want just execute this > progmam, and not to send an HTML image. how can i do that ? > You'll have to dig into PyWPS for the details, but I think your PyWPS script just needs to run idlde.exe as a separate process, using that comm

[python-win32] activate an opened window through the server

2009-04-23 Thread belaqziz salwa
yes my IDL script produces an image file, i want just execute this progmam, and not to send an HTML image. how can i do that ? thanks for help.   --- En date de : Ven 24.4.09, Tim Roberts a écrit : De: Tim Roberts Objet: Re: [python-win32] activate an opened window through the server À

Re: [python-win32] activate an opened window through the server

2009-04-23 Thread Tim Roberts
belaqziz salwa wrote: > I work on a PyWPS project and I need to run an IDL program , after the > user completed a form, > if I create a program .pro with the command that launches my program, > like this > > idlde.exe -minimized -nodemowarn -noconfirmexit -nosplash > @"C:\SAMIR\soil.run" > > how ca

[python-win32] activate an opened window through the server

2009-04-23 Thread belaqziz salwa
my server? thanks for help. --- En date de : Jeu 23.4.09, Tim Roberts a écrit : De: Tim Roberts Objet: Re: [python-win32] activate an opened window through the server À: "Python-Win32 List" Date: Jeudi 23 Avril 2009, 23h54 belaqziz salwa wrote: > I want, through a python script, t

Re: [python-win32] activate an opened window through the server

2009-04-23 Thread Tim Roberts
belaqziz salwa wrote: > I want, through a python script, to run a program that is written in > another language (IDL: Interactive Data Language), I tried to execute > a .bat file where I put my command which runs the program but I get > the error message: permission denied, then I thought to anothe

[python-win32] activate an opened window through the server

2009-04-23 Thread belaqziz salwa
but it is not possible is there a solution ?? thanks for help   --- En date de : Jeu 23.4.09, Tim Roberts a écrit : De: Tim Roberts Objet: Re: [python-win32] activate an opened window through the server À: "Python-Win32 List" Date: Jeudi 23 Avril 2009, 22h59 belaqziz salwa wrote:

Re: [python-win32] activate an opened window through the server

2009-04-23 Thread Tim Roberts
belaqziz salwa wrote: > I try to run a program in an interface that is already opened, all > works well through the Command Prompt but when I run my python script > in the server e.g http://localhost/MyScript.py it gives me the > following message: > pywintypes.error: (0, 'EnumWindows', 'No error m

[python-win32] activate an opened window through the server

2009-04-23 Thread belaqziz salwa
I try to run a program in an interface that is already opened, all works well through the Command Prompt but when I run my python script in the server e.g http://localhost/MyScript.py it gives me the following message: pywintypes.error: (0, 'EnumWindows', 'No error message is available') thanks