469,269 Members | 1,004 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,269 developers. It's quick & easy.

popen4 not returning output

I am trying to run the following script:
#!/usr/bin/python

import popen2

commandToRun = """scp scp_trial.py user@host:/targetDirectory"""
#commandToRun = "ls"
print commandToRun
p_out, p_in = popen2.popen4 (commandToRun)

theOut = p_out.readlines ()
print theOut
When I run this command with the "ls" command I see the output.
When I run this with the scp command I do not see the output of my
command -- however the file is successfully transfered. How can I see
the output?

Thanks

Aug 20 '07 #1
0 741

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Patrick L. Nolan | last post: by
2 posts views Thread by Patrick L. Nolan | last post: by
reply views Thread by rinkworks | last post: by
4 posts views Thread by billie | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.