KartheeK wrote:
Hi Anand,
This works for ls, I also tried it to capture ping.
But for some unknown reasons it is not able to capture scp's output.
The variable f is empty.
KartheeK
u have to get the standard error stream as well
u can take a look at commands module
ex:
import commands
print commands.getoutput('ls')
commands.getoutput returns output stream + error stream
- sree
--
http://picasaweb.google.com/gnuyoga
Each soul is potentially divine. The goal is to manifest the divine by
controlling nature, internal or external. Do this by work or worship or psychic
control or philosophy by one or more, or all of these and be free.
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers