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%" each time I download a config file and then only proceed further to process it.<br><br>KartheeK<br><br><b><i>Rishabh Manocha <rmanocha@gmail.com></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>> A typical scp transaction would
result in an output as below:<br>> -------------------------------------------------------<br>> temp.conf 100% 23<br>> 0.0KB/s 00:00<br>> -------------------------------------------------------<br>> I am interested in capturing the above output in a string.<br>><br>><br>> gnuyoga <gnuyoga@gmail.com> wrote:<br>><br>> KartheeK wrote:<br>> > Hi,<br>> ><br>> > I tried that too but it also for some reasons fails to capture scp<br>> > output although it can capture things like ping.<br>> > command.getstatusoutput returns exit code but not the string.<br>><br>> what do u mean by scp output ?<br>><br>> commands.getstatusoutput will give you output status and message if any<br>><br>> if 0 means the command is executed sucessfully.<br>> else it failed and reason why it failed will be returned.<br>><br>><br>> please remember that we
cannot see you monitor ;-)<br>><br>> - sree<br>><br>> --<br>> http://picasaweb.google.com/gnuyoga<br>><br>> Each soul is potentially divine. The goal is to manifest the divine by<br>> controlling nature, internal or external. Do this by work or worship or<br>> psychic control or philosophy by one or more, or all of these and be free.<br>><br>> _______________________________________________<br>> BangPypers mailing list<br>> BangPypers@python.org<br>> http://mail.python.org/mailman/listinfo/bangpypers<br>><br>><br>> _______________________________________________<br>> BangPypers mailing list<br>> BangPypers@python.org<br>> http://mail.python.org/mailman/listinfo/bangpypers<br>><br>><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>