由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Need help to use "read" in ksh
相关主题
怎麽映射backspace或del?如果一直都不logout的话
stty questionmget *疑问
tc shell script??a panic for help
an unixquestions, Please help!帮帮忙,用C作一个SHELL
Display line number in EMACS??????bash prompt 一问
UNIX command tobash 彩色 shell prompt
郁闷!求助!mget question in ftp
talk about data access problemHelp! shell programming
相关话题的讨论汇总
话题: ksh话题: stty话题: need话题: read话题: code
进入Unix版参与讨论
1 (共1页)
c*****n
发帖数: 11
1
I want to prompt users to enter a "security code" before they run my program.
I am trying "read" in ksh. But the code is displayed on the screen. I don't
want the code to be seen by others standing behind. Is this possible in ksh?
Thanks in advance!
c*****n
发帖数: 11
2
I found the answer. Thank you for reading.
stty_orig=`stty -g`
stty -echo
read secret
stty $stty_orig

program.

【在 c*****n 的大作中提到】
: I want to prompt users to enter a "security code" before they run my program.
: I am trying "read" in ksh. But the code is displayed on the screen. I don't
: want the code to be seen by others standing behind. Is this possible in ksh?
: Thanks in advance!

1 (共1页)
进入Unix版参与讨论
相关主题
Help! shell programmingDisplay line number in EMACS??????
Questions about KornShellUNIX command to
which key equals stop+A on hyper terminal? need to go to 'ok' prompt, pls help郁闷!求助!
请问如何在free bsd下安装zip drivetalk about data access problem
怎麽映射backspace或del?如果一直都不logout的话
stty questionmget *疑问
tc shell script??a panic for help
an unixquestions, Please help!帮帮忙,用C作一个SHELL
相关话题的讨论汇总
话题: ksh话题: stty话题: need话题: read话题: code