In message <[email protected]>,
chris heidbrink writes:

>Looks like I was shooting myself in the foot by trying to hide password
>sending / receiving in the expect script.
> I had these (stty) lines in there:
>
>stty -echo
>send -- "$password\r"
>stty echo
>exp_continue
>
>Commenting those out resolved the issue. Thanks again for your help.

Well I'm glad you got it working. I think this confirms my suspicion
that it was stdin that was the culprit. The stty -echo example I see
in the expect man page is used with send_user to communicate with the
real tty attched to the expect process and not talk on the pseudo tty
that is generaed by the spawn action.

My guess is using:

 sec < /dev/null

would also have shown the issue similar to how:

  sec &

did since the tty was waiting to be brought to the foreground so the
stty could take effect.

Nice troubleshooting there.

--
                                -- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.













------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to