Skip to main content
added 140 characters in body
Source Link
Mike Pennington
  • 30k
  • 12
  • 81
  • 153

I'm not sure what i can do. If there are any other ways i can run that script and receive the I/O without manually typing in the command, with or without using ssh or rsa key pairs, im all ears.

Do not attempt to drive interactive pty sessions with bash shell... it's like trying to turn a screw with the pointy-end of a hammer claw.... no worky. Use the Expect language, or Python / Ruby / Perl.

I wrote a presentation on one way to drive automated router sessions in python (with pexpect). This is only one of several techniques you could use. This presentation also includes a simple Expect script if you wanted to go that route.

If you want to use Windows, one popular option is scripting in SecureCRT

I'm not sure what i can do. If there are any other ways i can run that script and receive the I/O without manually typing in the command, with or without using ssh or rsa key pairs, im all ears.

Do not attempt to drive interactive pty sessions with bash shell... it's like trying to turn a screw with the pointy-end of a hammer claw.... no worky. Use the Expect language, or Python / Ruby / Perl.

I wrote a presentation on one way to drive automated router sessions in python (with pexpect). This is only one of several techniques you could use. This presentation also includes a simple Expect script if you wanted to go that route.

I'm not sure what i can do. If there are any other ways i can run that script and receive the I/O without manually typing in the command, with or without using ssh or rsa key pairs, im all ears.

Do not attempt to drive interactive pty sessions with bash shell... it's like trying to turn a screw with the pointy-end of a hammer claw.... no worky. Use the Expect language, or Python / Ruby / Perl.

I wrote a presentation on one way to drive automated router sessions in python (with pexpect). This is only one of several techniques you could use. This presentation also includes a simple Expect script if you wanted to go that route.

If you want to use Windows, one popular option is scripting in SecureCRT

Source Link
Mike Pennington
  • 30k
  • 12
  • 81
  • 153

I'm not sure what i can do. If there are any other ways i can run that script and receive the I/O without manually typing in the command, with or without using ssh or rsa key pairs, im all ears.

Do not attempt to drive interactive pty sessions with bash shell... it's like trying to turn a screw with the pointy-end of a hammer claw.... no worky. Use the Expect language, or Python / Ruby / Perl.

I wrote a presentation on one way to drive automated router sessions in python (with pexpect). This is only one of several techniques you could use. This presentation also includes a simple Expect script if you wanted to go that route.