Hi,
I am trying to use Cygwin to launch expect from a simple shell script. In my
case I am launching the shell script from a JSP, and the shell script gets
called properly, however I can do everything from the shell script but call
expect. For example touch ls, pwd, cd, echo all work, but expec
-
From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of
Jeremy Bopp
Sent: Thursday, January 14, 2010 8:49 AM
To: cygwin@cygwin.com
Subject: Re: Can't call expect from a Cygwin shell script.
Damo, David wrote:
> Hi,
>
> I am trying to use Cygwin to launch expect
Message-
From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of
Jeremy Bopp
Sent: Thursday, January 14, 2010 9:08 AM
To: cygwin@cygwin.com
Subject: Re: Can't call expect from a Cygwin shell script.
Damo, David wrote:
> No errors. :( Just does not run from the shell scr
I reinstalled it and it works. It seems the driver was hanging before.
Interesting how it worked expect from the JSP.
David
-Original Message-
From: Damo, David
Sent: Thursday, January 14, 2010 9:13 AM
To: 'Jeremy Bopp'; cygwin@cygwin.com
Subject: RE: Can't call expec
Hi,
I had a script that worked on UNIX, but on Cygwin it does not work. When I set
a variable in a while loop I can't use it after the loop. However, this worked
in UNIX. Any ideas why? All variables set after the done command are blank, but
can be seen in the while loop.
propfile=${SCRIPT_HOM
-- $nvpair
if [ ! "$1" = "" ]; then
eval "$1"=\"$2\"
fi
done
-Original Message-
From: Damo, David
Sent: Thursday, January 14, 2010 5:40 PM
To: 'cygwin@cygwin.com'
Subject: Can't set variables in a while loop tha
Hi,
I have interesting problem. I have bash script that calls an expect script that
works fine and does an scp. However after the scp the terminal freezes. It is
stuck on the bash prompt, however the prompt is not the original prompt. After
I do ctrl C it continues to process. I tried to do
sword:" { send "$unixpass\r"; }
Needs to be:
"Are you sure you want to continue connecting (yes/no)?" {exp_send
"yes\r"}
"*assword:" { send "$unixpass\r"; break }
If hung on password so I had to restart my termin
8 matches
Mail list logo