This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Problem with a Script
- From: "Tughan Hafizoglu" <tughan at nevotek dot com>
- To: <cygwin-apps at cygwin dot com>
- Cc: "NKoc" <nazim dot koc at gmail dot com>, "Deniz Dogan" <deniz at nevotek dot com>
- Date: Thu, 8 Nov 2007 23:15:43 +0200
- Subject: Problem with a Script
Hello Everyone,
I am new to Cygwin and seeking some assistance on which would be best
solution for telnet client that I am trying to run on Cygwin shell.
Here is the case:
I have a windows 2003 server and cygwin installed. I also have another
slackware linux box that has a telnet server running on. Now I have a
shell script I have written, as shown below, which runs fine on a
standart linux box.
$ ( echo "root" ;
sleep 1;
echo "password";
sleep 1;
echo "df";
sleep 1 ) | telnet 192.168.0.X
When I try running this on Cygwin shell which runs on the windows 2003
box, it opens the Microsoft Telnet Client in the prompt and immediately
drops to shell prompt.
What do you think the problem is caused from ?
Appreciate all's prompt replies.
Tughan HAFIZOGLU