Are you sure you want to do it that way? ssh can be configured to connect without prompting for a password. Look here:
http://cygwin.com/ml/cygwin-xfree/2002-07/msg00475.html >From: "Zelkovitz, Sanford J (ZERO CHAOS)" <[EMAIL PROTECTED]> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> >Subject: Expect Script under X-Windows >Date: Mon, 22 Jul 2002 12:20:41 -0400 > >I have been trying without any success to write an expect script which >would >insert the password for ssh in an x-windows session. I am obviously doing >something wrong since all efforts have failed. Has anyone succeeded where I >have failed? > > >Sanford <Sandy> Zelkovitz _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com