Hi Rishabh,<br><br>My script needs to fetch some critical config files from 200+ servers, process them and put them back in place. I need to make sure at each step that I am doing the right thing.<br>So, I though i would make sure to see "100%"&nbsp; each time I download a config file and then only proceed further to process it.<br><br>KartheeK<br><br><b><i>Rishabh Manocha &lt;rmanocha@gmail.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Kartheek,<br><br>It seems like what you want to do is a bit complicated -<br>http://www.linuxquestions.org/questions/linux-general-1/how-to-redirect-the-scp-command-output-to-text-file.-629034/.<br>Maybe if you can explain why you need the exact string that scp<br>outputs, somebody can suggest alternatives.<br><br>Best,<br><br>R<br><br>On Tue, May 13, 2008 at 2:42 PM, KartheeK <kartheekpn@yahoo.co.in> wrote:<br>&gt; A typical scp transaction would
 result in an output as below:<br>&gt; -------------------------------------------------------<br>&gt; temp.conf                                                         100%   23<br>&gt; 0.0KB/s   00:00<br>&gt; -------------------------------------------------------<br>&gt; I am interested in capturing the above output in a string.<br>&gt;<br>&gt;<br>&gt; gnuyoga <gnuyoga@gmail.com> wrote:<br>&gt;<br>&gt;  KartheeK wrote:<br>&gt; &gt; Hi,<br>&gt; &gt;<br>&gt; &gt; I tried that too but it also for some reasons fails to capture scp<br>&gt; &gt; output although it can capture things like ping.<br>&gt; &gt; command.getstatusoutput returns exit code but not the string.<br>&gt;<br>&gt; what do u mean by scp output ?<br>&gt;<br>&gt; commands.getstatusoutput will give you output status and message if any<br>&gt;<br>&gt; if 0 means the command is executed sucessfully.<br>&gt; else it failed and reason why it failed will be returned.<br>&gt;<br>&gt;<br>&gt; please remember that we
 cannot see you monitor ;-)<br>&gt;<br>&gt; - sree<br>&gt;<br>&gt; --<br>&gt; http://picasaweb.google.com/gnuyoga<br>&gt;<br>&gt; Each soul is potentially divine. The goal is to manifest the divine by<br>&gt; controlling nature, internal or external. Do this by work or worship or<br>&gt; psychic control or philosophy by one or more, or all of these and be free.<br>&gt;<br>&gt; _______________________________________________<br>&gt; BangPypers mailing list<br>&gt; BangPypers@python.org<br>&gt; http://mail.python.org/mailman/listinfo/bangpypers<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt;  BangPypers mailing list<br>&gt;  BangPypers@python.org<br>&gt;  http://mail.python.org/mailman/listinfo/bangpypers<br>&gt;<br>&gt;<br>_______________________________________________<br>BangPypers mailing list<br>BangPypers@python.org<br>http://mail.python.org/mailman/listinfo/bangpypers<br></gnuyoga@gmail.com></kartheekpn@yahoo.co.in></blockquote><br>