Telnet problem from Windows to stable from July 18th

2001-07-25 Thread Pete French

Has anybody seen (or has any explation for) this ?!

I have a user whos login .profile consists of the line:

exec bin/test.sh

The script "test.sh" looks like this:

#!/bin/sh
echo Choose file 1 or file 2
n=`echo ${n}`
FILE_NAME=""
while test "${FILE_NAME}" = ""
do
FILE_NO=0
echo -n "Choice: "
read n
if test "${n}" = "1"
then
FILE_NAME=file1.txt
fi
if test "${n}" = "2"
then
FILE_NAME=file2.txt
fi
if test "${FILE_NAME}" = ""
then
echo ${n} is not a valid choice - please choose again
fi
done
echo Chosen '"'${FILE_NAME}'"'
sleep 1
exit

(its a similfiled version of the real script- but this demonstartes
the problem simply enough)

The idea is that the uuser logs in and is presented with the menu from
the script. They then choose 1 or 2 to select a file. This has been working
for some time now, and I had almost forgotten it existed until the last
upgrade to track -stable.

What now happens is that if someone telnets to the box (from any
windows telnet client - not just the standard telnet) and logs in
then are presented with a continually scrolling screen of

Choice: is not a valid choice - please choose again
Choice: is not a valid choice - please choose again
Choice: is not a valid choice - please choose again
Choice: is not a valid choice - please choose again

etc...

as if the read from the inoput was always getting a blank string. This
has only just started happeing, and it only happens with windows telnet
clients.

Interestingly, if I alter the .profile to

bin/test.sh
exit

then the script functions fine. Does anyone have any ideas ? As both
the standartd windows telnet and the commercial terminal application
"reflections" behave the same then I amwondering if the problem is some
incompatibility with the windows tcp/ip stack maybe ?

I;d apperciate it if someone elsecould verify that it does the same on their
machine too...

cheers,

-pcf.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: telnet problem.

2001-04-27 Thread Paul T. Root

Vivek Khera <[EMAIL PROTECTED]> said:
> The following message is a courtesy copy of an article
> that has been posted to ml.freebsd.stable as well.
> 
> > "PR" == Paul Root <[EMAIL PROTECTED]> writes:
> 
> PR>   This happens for both on and off network routers. Connection to
> PR> the FreeBSD machine is through a Firewall-1 4.1 machine (sun). 
> 
> There was some discussion about firewalls losing state too early and
> dropping/locking some connections.  Your culprit is most likely the
> Firewall-1 machine.


Well, it would be nice to blame FW-1 on this, but I can't. 
I can open 2 windows from my Sun thru the firewall to the
FreeBSD machine. With the first one, I do my normal things,
working on the machine, with the second I telnet out. 

The first one never dies. I can have one window open all
week long. The second one dies after an hour of idle time.

The same thing will happen if I telnet (TeraTerm) from my
Win2000 machine to the FreeBSD machine, that are on the
same network. 

The same thing will happen if I telnet to the Win2000
machine. 

The only constant in all my synario's is the telnet client
program on FreeBSD. 




-- 
This looks like a job for legal tender! - The Tick

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message