0

I've encountered and weired behaviour when running python in Tomcat-CGI. All things workfine expect calling a this command

subprocess.Popen('"C:\Program Files\AutoIt3\Aut2Exe\Aut2exe.exe" /in "C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\python\install.au3" /out "C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\python\install.exe"')

Running this code generates an exe as expected, however, it also puts the following in the HTML

<subprocess.Popen object at 0x0094BC10>

If I call the same inside an batch file, it prints the entire output in the HTML and doesn't create the exe too.

Any Ideas?

1
  • 1
    <subprocess.Popen object at 0x0094BC10> looks like an output from p = subprocess.Popen...; print p or something similar. Someone has left debug printing. Commented Nov 18, 2010 at 10:52

1 Answer 1

1

I do not hnow much about TomCat and your environment, but I would say that your

<subprocess.Popen object at 0x0094BC10>

is returnvalue of subprocess.Popen() call.

I would try to move the subprocess.Popen() somewhere, where its returnvalue is not captured into your html (if what you want is eliminate the returnvalue from your html). Just my first idea, hope it helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.