[docs] trouble with os.system

Ruben Nielsen ruben.nielsen at mosek.com
Thu May 3 10:16:59 CEST 2012

Hello, I've been trying to build a python module that needs to call an
external script.

I have tried both with os.system() and subprocess.call()
Trouble is, both of them return value 0 meaning 'they succesfully ran the
script', however, the script isn't run properly.

os.system('/var/www/lmcrypt -i '+lic_out_loc+licfilename+' -o

when the script lmcrypt is run from any user through the terminal, the
output file is generated successfully, but when the call is invoked through
python, only empty files are generated. With what i've checked, it looks
like it must be a problem within python.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20120503/f317c3a0/attachment.html>

More information about the docs mailing list