Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2016-02-29 Thread reachparagm
Sagar, Have you worked on RobotFramework-sshlibrary. It seem to have very simple interface for both command processing/execution as well as interactive session to grep responses and decide the flow. Let me know if you face any issues. Can help you solve. -paragm On Thursday, August 8, 2013 at

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-11 Thread Joshua Landau
On 11 August 2013 09:57, Chris Angelico wrote: > On Thu, Aug 8, 2013 at 8:20 AM, sagar varule wrote: >> stdin, stdout, stderr = client.exec_command(bv_cmd) >> for line in stderr.readlines(): >> print line >> for line in stdout.readlines(): >>

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-11 Thread Chris Angelico
On Thu, Aug 8, 2013 at 8:20 AM, sagar varule wrote: > stdin, stdout, stderr = client.exec_command(bv_cmd) > for line in stderr.readlines(): > print line > for line in stdout.readlines(): > print line > But problem here is client.exec_command

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-11 Thread Joshua Landau
On 11 August 2013 08:02, sagar varule wrote: > On Sunday, August 11, 2013 11:28:31 AM UTC+5:30, Joshua Landau wrote: >> You also didn't say what didn't work with the first block of code. > > Submitting Command to Interactive Shell through code did not work. In what way didn't it work? What's the

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-11 Thread sagar varule
On Sunday, August 11, 2013 11:28:31 AM UTC+5:30, Joshua Landau wrote: > On 11 August 2013 06:18, sagar varule wrote: > > > Can any one comment on this.. > > > > If you don't get replies here it's probably because no-one knows > > Paramiko. I suggest posting elsewhere to see if there are any P

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-10 Thread Joshua Landau
On 11 August 2013 06:18, sagar varule wrote: > Can any one comment on this.. If you don't get replies here it's probably because no-one knows Paramiko. I suggest posting elsewhere to see if there are any Paramiko users in other places willing to help. There might be a Paramiko mailing list. You

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-10 Thread sagar varule
On Thursday, August 8, 2013 12:50:25 PM UTC+5:30, sagar varule wrote: > Hi All, > > > > Im using Paramiko for my SSH automation. Im using method that is shown in > demo_simple.py example which comes with Paramiko. Below is code from > demo_simple.py. > > > > As you can make out, below code

Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-08 Thread sagar varule
Hi All, Im using Paramiko for my SSH automation. Im using method that is shown in demo_simple.py example which comes with Paramiko. Below is code from demo_simple.py. As you can make out, below code opens SSH connection and opens Interactie Shell, and then wait for the command from user. I wan

Re: Paramiko help - processing multiple commands

2009-06-25 Thread J. Clifford Dyer
On Wed, 2009-06-24 at 15:22 -0700, Frank Ruiz wrote: > Greetings, > > I am trying to process multiple commands using paramiko. I have > searched other threads, and I think my use case is a little different. > I am trying to login to a storage node that has a special shell, and > as such I cant exe

Re: Paramiko help - processing multiple commands

2009-06-24 Thread Noah Dain
On Wed, Jun 24, 2009 at 8:35 PM, Frank Ruiz wrote: > Hi Jon, > > Thanks for the reply. So there are no errors. Essentially everything > runs as planned. Sorry for being ignorant, but I am not sure if there > is another way for providing trace data. I will look into what other > debugging I can prov

Re: Paramiko help - processing multiple commands

2009-06-24 Thread Frank Ruiz
Hi Jon, Thanks for the reply. So there are no errors. Essentially everything runs as planned. Sorry for being ignorant, but I am not sure if there is another way for providing trace data. I will look into what other debugging I can provide. Essentially what happens is that only the second command

Re: Paramiko help - processing multiple commands

2009-06-24 Thread Jon Clements
On Jun 24, 11:22 pm, Frank Ruiz wrote: > Greetings, > > I am trying to process multiple commands using paramiko. I have > searched other threads, and I think my use case is a little different. > I am trying to login to a storage node that has a special shell, and > as such I cant execute a script

Paramiko help - processing multiple commands

2009-06-24 Thread Frank Ruiz
Greetings, I am trying to process multiple commands using paramiko. I have searched other threads, and I think my use case is a little different. I am trying to login to a storage node that has a special shell, and as such I cant execute a script on the storage node side. I am also trying to avoi

Re: Paramiko Help

2009-06-24 Thread MRAB
Frank Ruiz wrote: Apologies.. Python newb here.. switching from perl to python.. so please forgive if this is a dumb question. I am using the paramiko module and have some global variables defined. i.e. hostname = ' 10.10.10.10' sshport = '22' I am then trying to pass this variable into the c

Re: Paramiko Help

2009-06-24 Thread Chris Rebert
On Wed, Jun 24, 2009 at 2:01 PM, Frank Ruiz wrote: > Apologies.. Python newb here.. switching from perl to python.. so > please forgive if this is a dumb question. > > I am using the paramiko module and have some global variables defined. > > i.e. > > hostname = ' 10.10.10.10' > sshport = '22' I'm

Re: Paramiko Help

2009-06-24 Thread Jon Clements
On Jun 24, 10:01 pm, Frank Ruiz wrote: > Apologies.. Python newb here.. switching from perl to python.. so > please forgive if this is a dumb question. > > I am using the paramiko module and have some global variables defined. > > i.e. > > hostname = ' 10.10.10.10' > sshport = '22' > > I am then t

Paramiko Help

2009-06-24 Thread Frank Ruiz
Apologies.. Python newb here.. switching from perl to python.. so please forgive if this is a dumb question. I am using the paramiko module and have some global variables defined. i.e. hostname = ' 10.10.10.10' sshport = '22' I am then trying to pass this variable into the client connect method