This is the mail archive of the
cygwin
mailing list for the Cygwin project.
ssh expect on Cygwin
- From: anurag shukla <shuklaan at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 19 Oct 2004 20:07:48 -0700
- Subject: ssh expect on Cygwin
- Domainkey-signature: a=rsa-sha1; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=CtbxVwQgOhPGqjOp2BVfxRwH9IM+0mMAWjELCyO68S2rxpCgTvccKQdacRghF+4XnDurnAtRPjsvz65efjPzC4ncdum0yW3z+OXYFQi0M6JY/zL5vTCe8H17SHIH2xQX8I6qI20UFzkMRXxv5ozGUlJoxue64sJaibfXli+fdWk
- Reply-to: anurag shukla <shuklaan at gmail dot com>
Hi,
I just got your mail id from the Cygwin MAiling list.
I am having a tyical problem with expect.
This is the code fragment that is giving me the problem. May be you
can help me with this conundrum
#!/usr/bin/expect
spawn ssh -l $user $box_ip
while {1} {
expect {
-exact "$user@$box_ip's password: " {
send -- "$passwd\n"
break;
}
The problem is every time I run the script, it asks me for the
password, though it should not. Also, when prompted for password, when
I enter the password, it just does not accepts it.
I am running Cygwin on WIndows XP.
Please advise me.
Thanks and Regards
Anurag
Please find the package info for Cygwin
Package Version Status
_update-info-dir 00230-1 OK
ash 20040127-1 OK
autossh 1.2g-2 OK
base-files 3.0-3 OK
base-passwd 2.1-1 OK
bash 2.05b-16 OK
bzip2 1.0.2-6 OK
cgoban 1.9.14-1 OK
crypt 1.1-1 OK
cygipc 2.03-2 OK
cygrunsrv 1.0-1 OK
cygutils 1.2.5-1 OK
cygwin 1.5.11-1 OK
cygwin-doc 1.3-7 OK
cygwin-x-doc 1.0.4-1 OK
ddd 3.3.9-1 OK
diffutils 2.8.7-1 OK
editrights 1.01-1 OK
expat 1.95.7-1 OK
expect 20030128-1 OK
fileutils 4.1-2 OK
findutils 4.1.7-4 OK
fontconfig 2.2.2-1 OK
freetype2 2.1.5-1 OK
fvwm 2.4.7-3 OK
gawk 3.1.4-3 OK
gdbm 1.8.3-7 OK
gettext 0.14.1-1 OK
ghostscript 7.05-2 OK
ghostscript-base 7.05-2 OK
ghostscript-x11 7.05-2 OK
glib 1.2.10-2 OK
glib-devel 1.2.10-2 OK
gnome-icon-theme 2.8.0-1 OK
gnugo 3.4-1 OK
grace 5.1.17-1 OK
grep 2.5-1 OK
groff 1.18.1-2 OK
gtk+ 1.2.10-2 OK
gtk+-devel 1.2.10-2 OK
guile 1.6.4-12 OK
gv 3.5.8-2 OK
gzip 1.3.5-1 OK
hicolor-icon-theme 0.5-1 OK
irc 20010101-3 OK
jpeg 6b-11 OK
less 381-1 OK
lesstif 0.93.94-2 OK
libbz2_1 1.0.2-6 OK
libcharset1 1.9.2-1 OK
libdb4.1 4.1.25-1 OK
libdb4.2 4.2.52-1 OK
libfontconfig-devel 2.2.2-1 OK
libfontconfig1 2.2.2-1 OK
libfreetype2-devel 2.1.5-1 OK
libfreetype26 2.1.5-1 OK
libgdbm 1.8.0-5 OK
libgdbm-devel 1.8.3-7 OK
libgdbm3 1.8.3-3 OK
libgdbm4 1.8.3-7 OK
libgettextpo0 0.14.1-1 OK
libguile12 1.6.4-12 OK
libguile12abi13 1.6.4-2 OK
libiconv 1.9.2-1 OK
libiconv2 1.9.2-1 OK
libintl 0.10.38-3 OK
libintl1 0.10.40-1 OK
libintl2 0.12.1-3 OK
libintl3 0.14.1-1 OK
libjpeg62 6b-11 OK
libjpeg6b 6b-8 OK
libltdl3 1.5.10-1 OK
libncurses5 5.2-1 OK
libncurses6 5.2-8 OK
libncurses7 5.3-4 OK
libncurses8 5.4-1 OK
libopenldap2 2.1.25-1 OK
libpcre 4.1-1 OK
libpcre0 4.5-1 OK
libpng 1.2.5-4 OK
libpng12 1.2.5-4 OK
libpopt0 1.6.4-4 OK
libreadline4 4.1-2 OK
libreadline5 4.3-5 OK
libreadline6 5.0-1 OK
libtiff-devel 3.7.0beta2-1 OK
libtiff4 3.6.0-5 OK
libtiff5 3.7.0beta2-1 OK
libungif 4.1.0-3 OK
libXft 2.1.6-1 OK
libXft-devel 2.1.6-1 OK
libXft1 1.0.0-1 OK
libXft2 2.1.6-1 OK
login 1.9-7 OK
man 1.5o-1 OK
minires 0.97-1 OK
mktemp 1.5-3 OK
ncurses 5.4-1 OK
nedit 5.5-1 OK
openbox 0.99.1-4 OK
openssh 3.9p1-2 Incomple
openssl 0.9.7d-2 OK
pcre 4.5-1 OK
pcre-doc 4.5-1 OK
perl 5.8.5-3 OK
perl-libwin32 0.191-1 OK
postgresql 7.4.5-1 OK
python 2.3.4-2 OK
readline 5.0-1 OK
ruby 1.8.1-1 OK
sed 4.1.2-1 OK
sh-utils 2.0.15-4 OK
startup-notification 0.7-1 OK
tar 1.13.25-5 OK
tcltk 20030901-1 OK
termcap 20021106-2 OK
terminfo 5.4_20041009-1 OK
texinfo 4.2-4 OK
textutils 2.0.21-1 OK
tiff 3.7.0beta2-1 OK
transfig 3.2.4-2 OK
vim 6.3-1 OK
which 1.5-2 OK
WindowMaker 0.80.2-1 OK
X-start-menu-icons 1.0.3-1 OK
X-startup-scripts 1.0.9-1 OK
x2x 1.30-2 OK
Xaw3d 1.5D-5 OK
xemacs 21.4.15-1 OK
xemacs-emacs-common 21.4.15-1 OK
xemacs-mule-sumo 2004-08-18-1 OK
xemacs-sumo 2004-08-18-1 OK
xemacs-tags 21.4.15-1 OK
xfig 3.2.4-6 OK
xfig-lib 3.2.4-6 OK
XFree86-lib-compat 4.3.0-2 OK
xgraph 12.1-1 OK
XmHTML 1.1.7-1 OK
xorg-x11-base 6.8.1.0-1 OK
xorg-x11-bin 6.8.1.0-1 OK
xorg-x11-bin-dlls 6.8.1.0-1 OK
xorg-x11-bin-lndir 6.8.1.0-1 OK
xorg-x11-devel 6.8.1.0-1 OK
xorg-x11-etc 6.8.1.0-1 OK
xorg-x11-f100 6.8.1.0-3 OK
xorg-x11-fcyr 6.8.1.0-2 OK
xorg-x11-fenc 6.8.1.0-2 OK
xorg-x11-fnts 6.8.1.0-3 OK
xorg-x11-fscl 6.8.1.0-2 OK
xorg-x11-fsrv 6.8.1.0-1 OK
xorg-x11-libs-data 6.8.1.0-1 OK
xorg-x11-man-pages 6.8.1.0-1 OK
xorg-x11-man-pages-html 6.8.1.0-1 OK
xorg-x11-nest 6.8.1.0-1 OK
xorg-x11-vfb 6.8.1.0-1 OK
xorg-x11-xwin 6.8.1.0-3 OK
xorg-x11-xwin-gl 6.8.1.0-3 OK
xterm 196-1 OK
xwinclip 1.2.0-1 OK
xwinwm 0.0.5-1 OK
zlib 1.2.2-1 OK
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/