[docs] trouble with os.system

Sandro Tosi sandro.tosi at gmail.com
Fri May 4 00:00:37 CEST 2012

Hello Ruben,
this mailing list is about bugs/enhancements to CPython documentation,
and your email doesn't fit this description. I'd suggest to contact a
user support forum, such as


On Thu, May 3, 2012 at 10:16 AM, Ruben Nielsen <ruben.nielsen at mosek.com> wrote:
> 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
> '+lic_out_loc+licfilename+'final')
> call([/var/www/lmcrypt,'-i',lic_out_loc+licfilename,'-o',lic_out_loc+licfilename+'final'])
> 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.
> _______________________________________________
> docs mailing list
> docs at python.org
> http://mail.python.org/mailman/listinfo/docs

Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

More information about the docs mailing list