[Tutor] Running EXE file with arguments

Jonatán Guadamuz Espinoza jguadamuz at gmail.com
Fri Mar 8 19:44:24 CET 2013


El viernes, 8 de marzo de 2013, 3n2 Solutions <3n2solutions at gmail.com>
escribió:

> Below is the shell command that works fine if ran as is:
> C:\FinalTest>fix.exe -com 17 -baud 38400 -setconfig base.dat
>
> I'm trying to automate it using the following python command but it
> gives me an error: "....returned non-zero exit status 1"
>
> subprocess.check_call(['c:/FinalTest/fix.exe', '-com 17','-baud
> 38400', '-setconfig base.dat'])
>
> Where is the problem?
>

Maybe you could try to give the full path for base.dat as you did with
fix.exe




-- 
Sent from Gmail Mobile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130308/afb16290/attachment.html>


More information about the Tutor mailing list