[Zope-dev] Extrenal method unable to run the os.popen() or os.system() commands

2007-02-09 Thread Ridzwan Aminuddin
Hi guys... I wrote an external python script which would grab some HTML and so some text and file preprocessing. The script then is supposed to run come command line methods... using os.system() .. however when i run the script triggered by my DTML code it manages to do the grabbing of the htm

Re: [Zope-dev] Extrenal method unable to run the os.popen() or os.system() commands

2007-02-09 Thread Andreas Jung
--On 9. Februar 2007 00:47:09 -0800 Ridzwan Aminuddin <[EMAIL PROTECTED]> wrote: Hi guys... I wrote an external python script which would grab some HTML and so some text and file preprocessing. The script then is supposed to run come command line methods... using os.system() .. however whe

[Zope-dev] Zope Tests: 7 OK

2007-02-09 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Thu Feb 8 12:00:00 2007 UTC to Fri Feb 9 12:00:00 2007 UTC. There were 7 messages: 7 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.6 Python-2.1.3 : Linux From: Zope Unit Tests Date: Thu Feb 8 21:05:31 EST 2007 URL

Re: [Zope-dev] Extrenal method unable to run the os.popen() or os.system() commands

2007-02-09 Thread Dieter Maurer
Ridzwan Aminuddin wrote at 2007-2-9 00:47 -0800: > ... > command = "cd "+homedir > os.popen(command) This "popen" is useless. It will change the working directory in the new (!) process that executes "command". But the effect is lost as soon as the process ends (after the "cd" h

Re: [Zope-dev] Extrenal method unable to run the os.popen() or os.system() commands

2007-02-09 Thread Ridzwan Aminuddin
Hi, Since you say changing the working environment in zope is dangerous, is there any way around for what i need to do? Is there a way i can find out the exact directory zope is on at that moment? and if i can find it is it a good idea for me to place the additional files i need to run my .jar

Re: [Zope-dev] Extrenal method unable to run the os.popen() or os.system() commands

2007-02-09 Thread Ridzwan Aminuddin
Oh yes, i forgot to mention that in my code i did use the absolute paths to my java .jar file as you can see i my code below, the absolute path to the Extensions directory is in the variable homedir. I also set my classpath to point to the folder just in case.. Any ideas why it won't work? and