Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting "Password"

1 view
Skip to first unread message

Hema

unread,
May 21, 2004, 2:29:10 AM5/21/04
to
Hi,
What command shd be used to get the input as password so that the
characters are not echoed back in the terminal?

Thanx,
Hema


John Murray

unread,
May 21, 2004, 3:18:38 AM5/21/04
to
"Hema" <hemav...@msdc.hcltech.com> wrote in message
news:941581d04a73d955...@localhost.talkaboutprogramming.com...

> What command shd be used to get the input as password so that the
> characters are not echoed back in the terminal?

Which M implementation are you using? Post us the result of this command:

WRITE $ZVERSION

and we should be able to advise you.

John

Hema

unread,
May 21, 2004, 4:19:30 AM5/21/04
to
Hi,
I am using Intersystem's Cache Studio
$ZVERSION is
Cache for Windows NT (Intel) 5.0.4 (Build 829_SU) Sat Oct 18 2003 12:25:14
EDT

Thanks,
Hema

J Peters

unread,
May 21, 2004, 8:04:46 AM5/21/04
to
Search the docs for the OPEN or USE command and look at the
description for terminal devices

read !,"Enter your username: ",name
use $i:/echo=0
read !,"Enter your password: ",password
use $I:/echo=1
w !

"Hema" <hemav...@msdc.hcltech.com> wrote in message

news:ff1cc4a8d9162d4e...@localhost.talkaboutprogramming.com...

John Murray

unread,
May 21, 2004, 8:18:53 AM5/21/04
to
"Hema" <hemav...@msdc.hcltech.com> wrote in message
news:ff1cc4a8d9162d4e...@localhost.talkaboutprogramming.com...

OK, then for "secret" input at a terminal READ, use the S protocol or the
/ECHO=0 keyword. For example, try this in Terminal:

USER>u $p:(:"+S") r secret w ! u $p:(:"-S") r public

If you prefer to use keywords:

USER>u $p:(:/ECHO=0) r secret w ! u $p:(:/ECHO=1) r public

See the Cache I/O Device Guide in the Reference Material section of online
docs.

HTH

John Murray
George James Software
www.georgejames.com


0 new messages