[Zope-dev] Extrenal method unable to run the os.popen() or
os.system() commands
Andreas Jung
lists at zopyx.com
Fri Feb 9 03:51:37 EST 2007
--On 9. Februar 2007 00:47:09 -0800 Ridzwan Aminuddin <wanster at inbox.com>
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 i run the script triggered by my DTML code it
> manages to do the grabbing of the html and saving it into a file ans
> stuff... but once it hits the portion where its supposed to run the
> command lines.. it just skips everything and goes right to the end....
> after which this error message is shown :
>
> Error Type
> IOError
> Error Value
> [Errno 2] No such file or directory:
> '/var/lib/zope2.8/instance/plone-site/Extensions/output.txt' Request made
> at
>
You can resolve this issue on your own by checking why the file is
generated in the wrong place or by it is looked up at the wrong
place..adding some debug code or using pdb should be sufficient to track
this down.
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20070209/c60c8f67/attachment.bin
More information about the Zope-Dev
mailing list