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

2007-02-14 Thread Wichert Akkerman
Previously Ridzwan Aminuddin wrote: Hi! Thanks for your reply. I heeded your advice and tried fooling around with the stderr. Apparently even if i set the classpath through my execution statement i.e : command = java -jar -classpath /var/lib/zope2.8/instance/plone-site/Extensions/

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

2007-02-13 Thread Dieter Maurer
Ridzwan Aminuddin wrote at 2007-2-9 17:53 -0800: 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

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

2007-02-13 Thread Ridzwan Aminuddin
Hi! Thanks for your reply. Honestly, I'm not sure why the external method is skipped. I've tried several methods to debug and changed my python code to see the effects. I wrote another Java Jar. called test.jar that when executed prints out a line to stdout and creates a text file to the

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

2007-02-13 Thread Dieter Maurer
Ridzwan Aminuddin wrote at 2007-2-12 19:41 -0800: ... This external method is triggered in my DTML code. I've created other external methods before so i know i've done it right.. but the os.system() command for java -jar just doesn't seem to work. I've tried to use other commands such as ls

[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

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 when

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

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