Date: Wed, 25 Jul 2001 18:03:28 -0400 From: Randall Hopper <aa8vb@nc.rr.com> To: Pete French <pfrench@firstcallgroup.co.uk> Cc: stable@FreeBSD.ORG Subject: Re: Telnet problem from Windows to stable from July 18th Message-ID: <20010725180328.A17305@nc.rr.com> In-Reply-To: <E15PPs7-000HAT-00@mailhost.firstcallgroup.co.uk>; from pfrench@firstcallgroup.co.uk on Wed, Jul 25, 2001 at 03:42:47PM %2B0100 References: <E15PPs7-000HAT-00@mailhost.firstcallgroup.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Pete French: |I have a user whos login .profile consists of the line: |exec bin/test.sh | |The script "test.sh" looks like this: ... |while test "${FILE_NAME}" = "" |do ... | read n ... |done ... |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 ... |Interestingly, if I alter the .profile to | |bin/test.sh |exit ... |then the script functions fine. Don't know the reason why but it sure sounds like that when the Bourne script is execed from ~/.profile, the terminal isn't being connected up to the stdin of the script, but when you invoke it as a child process it is. To the top of your test.sh script, add a: $ if [ -t 0 ]; then echo Got a terminal else echo What\! ... No Terminal\! fi check and see what happens. Randall -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010725180328.A17305>