aha. i put a log to file option in the expect script in this gives me
something to go on.
more /tmp/expect.log
spawn /usr/bin/ssh -o StrictHostKeyChecking=no -l ottoarbor xxx.xxx.xx.xx
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {13437}
Gate keeper glob pattern for ':/% ' is ':/% '. Activating booster.
expect: does "" (spawn_id exp5) match glob pattern "word:"? no
"denied"? no
":/% "? Gate ":/% "? gate=no
[email protected]'s password:
expect: does "[email protected]'s password: " (spawn_id exp5) match glob
pattern "word:"? yes
expect: set expect_out(0,string) "word:"
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) "[email protected]'s password:"
stty: impossible in this context
are you disconnected or in a batch, at, or cron script?stty: ioctl(user): bad
file number
while executing
"stty -echo"
invoked from within
"expect {
word: {
stty -echo
send -- "$password\r"
stty echo
exp_continue
} denied {
send_user "\nrs 0 failed. invalid password or account..."
(file "/usr/bin/addarborpfBlackhole.exp" line 26)
----- Original Message -----
From: John P. Rouillard <[email protected]>
To: chris heidbrink <[email protected]>
Cc: "[email protected]"
<[email protected]>
Sent: Thursday, February 28, 2013 10:58 AM
Subject: Re: [Simple-evcorr-users] detach mode probs
In message <[email protected]>,
chris heidbrink writes:
> but when that script calls out the expect script it starts at the
> first part to try to ssh / login / but doesn't go anywhere.
>
> <snip of addarborpfBlackholeexp.pl>
>
> $arboroutput = qx(/usr/local/bin/expect -f
> /usr/bin/addarborpfBlackhole.exp '$params->{'devusername'}'
> '$params->{'password'}' '$params->{'device'}'
Is tracing enabled in the expect script? If so what is it telling you?
I am wondering if there is an environment variable issue here as well.
One big difference with detatched/daemon mode is that stdin, stdout
and stderr are all directed to /dev/null. Can you try running it
*without* detatch and using
< /dev/null > /dev/null 2>&1
or equivalent for your shell to redirect descriptors 0, 1 and 2.
--
-- 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