Looking to get lucky again with another expect question.

2011-07-25 Thread Steven W. Orr
I'm writing a pile of python code. There's a lot of remote execution going on using ssh or the paramiko interface in python. Either way, I discovered a startling nuance: * When I run programs remotely which are shell scripts (bash), they behave like they are interactive, i.e., the output is

Re: Looking to get lucky again with another expect question.

2011-07-25 Thread Michael ODonnell
Try the -t option to force pty allocation? ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/

Re: Looking to get lucky again with another expect question.

2011-07-25 Thread Brian St. Pierre
On Mon, Jul 25, 2011 at 1:48 PM, Steven W. Orr ste...@syslang.net wrote: The general solution would be to run an expect script that would simply act as a passthrough to guarantee that whatever I run would think it had a tty, and would therefore be line buffered by default instead of fully

Re: Looking to get lucky again with another expect question.

2011-07-25 Thread Steven W. Orr
On 7/25/2011 1:48 PM, Steven W. Orr wrote: I'm writing a pile of python code. There's a lot of remote execution going on using ssh or the paramiko interface in python. Either way, I discovered a startling nuance: ... #! /usr/bin/expect -- spawn something interact It's that middle line I