Re: [BangPypers] Redirection of standard output to a variable

2008-05-13 Thread KartheeK
Looks like that is the best available option.. Thank you all folks for your time and assistance. Regards, KartheeK Rishabh Manocha <[EMAIL PROTECTED]> wrote: In that case, why not use what gnuyoga suggested - i.e. - commands.getstatusoutput("scp ..."). If the first entry in th

Re: [BangPypers] Redirection of standard output to a variable

2008-05-13 Thread KartheeK
ly proceed further to process it. KartheeK Rishabh Manocha <[EMAIL PROTECTED]> wrote: Kartheek, It seems like what you want to do is a bit complicated - http://www.linuxquestions.org/questions/linux-general-1/how-to-redirect-the-scp-command-output-to-text-file.-629034/. Maybe if you can expl

Re: [BangPypers] Redirection of standard output to a variable

2008-05-13 Thread KartheeK
capturing the above output in a string. gnuyoga <[EMAIL PROTECTED]> wrote: 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 strin

Re: [BangPypers] Redirection of standard output to a variable

2008-05-13 Thread KartheeK
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. KartheeK gnuyoga <[EMAIL PROTECTED]> wrote: KartheeK wrote: > Hi Anand, > > This works for l

Re: [BangPypers] Redirection of standard output to a variable

2008-05-12 Thread KartheeK
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 Anand Balachandran Pillai <[EMAIL PROTECTED]> wrote: Using os.popen for this is straight-forward. Example... [EMAI

Re: [BangPypers] Redirection of standard output to a variable

2008-05-11 Thread KartheeK
Hi Rishabh, Unfortunately the remote servers that house these config files do not have them on either www or ftp, my only mode of access is scp This was a good learning for me , i did not know that something like urllib existed.. Thanks for the inputs KartheeK Rishabh Manocha <[EM

[BangPypers] Redirection of standard output to a variable

2008-05-11 Thread KartheeK
to process the standard output so that I can confirm if the download did happen completely/correctly. Please pass on any hints.. Thanks, KartheeK ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] How can I read an excel sheet using python ?

2008-04-28 Thread KartheeK
Hi, Why dont u export it to a ,txt file and then read it as a normal file.. KartheeK sambasivareddy <[EMAIL PROTECTED]> wrote: Hi all, Need help on “How can I read an excel sheet using python”? If any one have any example please send to me. Thanks in advance.

Re: [BangPypers] Redirecting output to a string

2008-03-19 Thread KartheeK
Thanks a lot, that worked :) Pythonic <[EMAIL PROTECTED]> wrote: You may want to try commands module import commands cmd = 'ls' status, output = commands.getstatusoutput(cmd) print output Pavithra Hanchagaiah wrote: Hey Karth

[BangPypers] Redirecting output to a string

2008-03-18 Thread KartheeK
[ssh, "-l", user, ip] + ['cat /tmp/temp.conf'] but that does not work out. Regards, KartheeK ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers