[macosx-unix] expect trouble
Jesse Callaway
bonsaime at gmail.com
Sat Jan 5 00:28:14 EST 2008
On Jan 4, 2008 7:40 PM, Jared ''Danger'' Earle <jared at 23x.net> wrote:
> On 4 Jan 2008, at 23:02, Jesse Callaway wrote:
> > Do I need to be looking at stderr? Should I try yax? Should I try one
> > of python or perl expect modules?
>
>
> Is there a reason you're not using SSH keys?
>
1. Read the post again.
2. I don't know, just stick with #1 for now.
I'm sorry. It's easy to be curt on the web. So I'll explain... It's
really obvious that I'm using SSH keys if you read the post all the
way through. Please don't post a reply unless you think you can help
with my problem. This is summarized in the last sentence of my first
paragraph. It is further illustrated in the example script.
But that's not the problem. The problem is that for some reason
something is not happening with expect the way I want it to. I tried
looking at the autoexpect dump of my action, but I wasn't able to
correlate it because autoexect uses exact matches for the patterns
which confuses my efforts to debug. Maybe I'm not matching the prompt
for the ssh key passphrase properly, but I'm pretty sure I am because
of my attempts with the '-d' flag. It shows that the patterns (i've
tried 2) "id_rsa\': ", and "id_rsa': " match. I'm not sure why they
both match since an escaped single quote should not match if the
escape character.. i'm losing my train of thought already. Anyway,
I'll post my debug output on mondag when I care about it. It's the
weekend!
-jesse
More information about the macosx-unix
mailing list