Re: [Zope] Why doesn't os.system(command) work?

2007-08-17 Thread Andreas Jung
--On 16. August 2007 22:40:45 -0700 rieh25 [EMAIL PROTECTED] wrote: I think it's finding the programm because I'm using the complete path. And when I test it using the wrong programm name, it returns a 1. But instead, when I pass it the right name, it just hangs. In the task manager there is

Re: [Zope] Why doesn't os.system(command) work?

2007-08-17 Thread Reinoud van Leeuwen
On Thu, Aug 16, 2007 at 10:40:45PM -0700, rieh25 wrote: I think it's finding the programm because I'm using the complete path. And when I test it using the wrong programm name, it returns a 1. But instead, when I pass it the right name, it just hangs. In the task manager there is an entry

Re: [Zope] Why doesn't os.system(command) work?

2007-08-17 Thread rieh25
I'm trying to insert a large amount of records into a database table based on a query. When I try doing it directly from a Zope programm it gives a time out, because the query takes too much time. Therefore I thought of doing it from a python script with an odbc connection, called with

Re: [Zope] Why doesn't os.system(command) work?

2007-08-17 Thread Thomas Bennett
You probably want NT Script. We use that on our public PCs in the library. We have CDs in a tower and use NT Script to map a CD and a drive from a server that has an executable to access the CD or run the executable from the client machine. Every machine has NT Script installed. In 1995

Re: [Zope] Why doesn't os.system(command) work?

2007-08-17 Thread rieh25
It works when I start Zope with runzope, instead of starting it a a server. It's not really a problem to me because I can create a windows shceduled task to start zope everytime the server is turned on. I need to do it from Zope because the user needs to specify some parameters for the query, so

[Zope] Why doesn't os.system(command) work?

2007-08-16 Thread rieh25
I have an external method like this: import os def ext_programm(): os.system('notepad.exe') But it doesn't work. -- View this message in context: http://www.nabble.com/Why-doesn%27t-os.system%28command%29-work--tf4283613.html#a12193786 Sent from the Zope - General mailing list archive at

Re: [Zope] Why doesn't os.system(command) work?

2007-08-16 Thread Andreas Jung
--On 16. August 2007 21:21:36 -0700 rieh25 [EMAIL PROTECTED] wrote: I have an external method like this: import os def ext_programm(): os.system('notepad.exe') But it doesn't work. You can figure it out yourself by checking the return value of os.system() and by checking the

Re: [Zope] Why doesn't os.system(command) work?

2007-08-16 Thread rieh25
What is a search path and how do I set it? -- View this message in context: http://www.nabble.com/Why-doesn%27t-os.system%28command%29-work--tf4283613.html#a12194033 Sent from the Zope - General mailing list archive at Nabble.com. ___ Zope maillist

Re: [Zope] Why doesn't os.system(command) work?

2007-08-16 Thread Andreas Jung
--On 16. August 2007 21:58:08 -0700 rieh25 [EMAIL PROTECTED] wrote: What is a search path and how do I set it? Google windows search path. -aj pgpptZy8FpD0f.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org

Re: [Zope] Why doesn't os.system(command) work?

2007-08-16 Thread rieh25
I think it's finding the programm because I'm using the complete path. And when I test it using the wrong programm name, it returns a 1. But instead, when I pass it the right name, it just hangs. In the task manager there is an entry for the program, but it doesn't seem to execute. Thanks for the