From: Theo Ng (theo.ng@polyu.edu.hk)
Date: Wed Apr 10 2002 - 04:39:40 EDT
Dear All,
I posted before and want to make it more clear.
Below are the files I edited:
/etc/sshrc:
#!/bin/sh
/usr/bin/login.ssh
/usr/bin/login.ssh
#!/bin/sh
/bin/echo "Welcome!
1 See today's date
2 See who's logged in
q Quit"
/bin/echo "Your choice: \c"
read ans
while [ "$ans" != "q" ]
do
case "$ans" in
1)
/bin/date
;;
2)
/bin/who
;;
q)
/bin/echo "Goodbye"
exit 0
;;
*)
/bin/echo "Invalid choice"
;;
esac
/bin/echo "Your choice: \c"
read ans
done
exit 0
I discovered that SSH2 doesn't received input/disable input
function. Therefore it by-pass"read ans". As the result, a continuous
loop occur and display "Invalid choice". I think it doesn't relate to tty
because tty functions on stdin only. But now, it doesn't a input
prompt. I also tried to set "batchmode" to "no" and "userlogin" to "yes".
I need your help, please help me... If any information I have missed,
please let me know. Thank you so much.
Theo
Technician
PolyU of Hong Kong
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:11 EDT