New question #214804 on Sikuli:
https://answers.launchpad.net/sikuli/+question/214804

I am trying to call a windows console based application as a workaround to a 
serial access problem.
As debug I have tried
    cmd = "cmd.exe" # known app in path
    commands.getstatusoutput(cmd)
and
    commands.getoutput(cmd)
but the application hangs, or I get an error  '{' is not recognized as an 
internal or external command,
operable program or batch file. I suspect this is related to jython calls per 
http://www.jython.org/docs/library/commands.html  which says "cmd is actually 
run as { cmd ; } 2>&1". This wouldn't be valid in windows, and would give this 
error.

I have tried 
    os.popen(cmd).readlines()[-1]
and
    subprocess.check_output(cmd)
then just
    subprocess.call(cmd)
all with various combinations of full path, quoting ('"cmd.exe"' and "cmd.exe") 
and path escaping per the jython docs, but the application just hangs.

What method is best for calling applications in WinXP?

Thanks


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to