- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Inquire password
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2012 02:23 AM
тАО02-16-2012 02:23 AM
Good morning all,
I am trying to make a DCL which inquire user name and password and I would like to show on the screen "*" or nothing instead the written password. Regretfully I have not found a way to do that despite I suppose it should not be difficult.
Can you, please, help me?
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2012 02:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2012 03:10 AM
тАО02-16-2012 03:10 AM
Re: Inquire password
I knew it should be easy.
It does work perfect.
Many thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2012 07:15 AM
тАО02-16-2012 07:15 AM
Re: Inquire password
If you haven't done it already, then you might wish to look at some
error handling ("ON ERROR" and/or "ON CONTROL_Y" -- See "HELP ON") to go
with that "SET TERMINAL [...]" action. A carefree program combined with
a careless user can leave the user's terminal in a confusing state.
> I knew it should be easy.
Everything's complicated.
> It does work perfect.
Define "perfect". You tried Ctrl/Y at your "password:" prompt?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2012 02:05 PM
тАО02-16-2012 02:05 PM
Re: Inquire password
Unfortunately this isn't easy from DCL. You need to deal with saving and restoring the terminal state and unexpected stuff in the typeahead buffer. The safest way is to write a program to do it. The attachment is a small MACRO32 program which will prompt SYS$COMMAND for a password with no echo or typeahead, and it's timed out after 20 seconds. The password text is returned as a local symbol "PASSWORD" and any errors in $STATUS.
Rename the file to GETPASSWORD.MAR then:
$ MACRO GETPASSWORD
$ LINK GETPASSWORD
$ RUN GETPASSWORD
Password:
$ SHOW SYMBOL PASSWORD
PASSWORD = "secret"