[BangPypers] Redirection of standard output to a variable

gnuyoga gnuyoga at gmail.com
Tue May 13 10:38:05 CEST 2008

KartheeK wrote:
> Hi,
> I tried that too but it also  for some reasons fails to capture scp 
> output although it can capture things like ping.
> command.getstatusoutput  returns exit code but not the string.

what do u mean by scp output ?

commands.getstatusoutput will give you output status  and message if any

if 0 means the command is executed sucessfully.
else it failed and reason why it failed will be returned.

please remember that we cannot see you monitor ;-)

- sree


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.

More information about the BangPypers mailing list