- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Password reading through C/C++ in OpenVMS
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
тАО01-02-2006 09:18 PM
тАО01-02-2006 09:18 PM
Can anybody help me out how to read a password without echoing on the screen through C/C++ in OpenVMS?
Is there a substitute for temios.h or getpass()?
Thanks in advance,
Regards,
hem
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2006 10:34 PM
тАО01-02-2006 10:34 PM
Re: Password reading through C/C++ in OpenVMS
take a look at OpenVMS runtime library function: smg$read_string with option TRM$M_TM_NOECHO.
Cheers,
Sergejus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2006 11:10 PM
тАО01-02-2006 11:10 PM
SolutionIf all you want to do is to read without echoing, see my response to your other topic "Password reading in OpenVMS."
It's a lot simpler than using SMG$ (the screen management runtime library), though if you want to do fancier things like move the cursor around the screen, erase individual lines on the screen, etc., you'd want to check out SMG$ as Sergejus suggests.
Galen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2006 12:21 AM
тАО01-03-2006 12:21 AM
Re: Password reading through C/C++ in OpenVMS
Thanks very much, it simply solved my problem.
Could you clarify this?
In that documentation I see "RNE" for read and no echo instead of "me". Can I use "PTA" too to clear the buffer along with "me"? If "me" is for "RNE" is there something similar for "PTA" too?
Is the following usuage correct? freopen("TT:","r",stdin,"rop=me,pta")
Thanks again,
Regards,
Reddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2006 12:26 AM
тАО01-03-2006 12:26 AM
Re: Password reading through C/C++ in OpenVMS
Mistakenly I read "rne" as "me". I regret for that and the usuage should read as
freopen("sys$input:","r",stdin,"rop=rne,pta");
Thanks,
Reddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2006 01:21 AM
тАО01-03-2006 01:21 AM
Re: Password reading through C/C++ in OpenVMS
I'm pleased to hear that my suggestion worked for you.
Although I haven't tried it, "rop=rne,pta" looks like it should clear the typeahead buffer as well as turning off echo.
Galen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2006 07:43 AM
тАО01-03-2006 07:43 AM
Re: Password reading through C/C++ in OpenVMS
http://cvs.sourceforge.net/viewcvs.py/freetds/freetds/vms/getpass.c?rev=1.5&view=log
http://cvs.sourceforge.net/viewcvs.py/freetds/freetds/include/replacements/readpassphrase.h?rev=1.1&view=log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2006 06:03 PM
тАО01-03-2006 06:03 PM
Re: Password reading through C/C++ in OpenVMS
Thanks for your attention to the post.
Galen,
does your solution work for all type of terminals/consoles or it has any dependencies?
Regards,
Reddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2006 07:26 PM
тАО01-03-2006 07:26 PM
Re: Password reading through C/C++ in OpenVMS
from your Forum Profile:
I have assigned points to 0 of 19 responses to my questions.
Maybe you can find some time to do some assigning?
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.
Consider, that every poster took at least the trouble of posting for you!
To easily find your streams with unassigned points, click your own name somewhere.
This will bring up your profile.
Near the bottom of that page, under the caption ├в My Question(s)├в you will find ├в questions or topics with unassigned points ├в Clicking that will give all, and only, your questions that still have unassigned postings.
Thanks on behalf of your Forum colleagues.
PS. ├в nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before ├в please do not take offence ├в none is intended!
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 01:09 AM
тАО01-04-2006 01:09 AM
Re: Password reading through C/C++ in OpenVMS
It should work for any VMS terminal device I can think of, probably including pseudo terminals (PTxx: devices) and the SYS$INPUT of batch and detached processes.
As I mentioned, though, it isn't portable to other operating systems. For portability, it would be better to hide it behind a jacket routine as Craig has done (see his previous response.)
I'm not certain that using SYS$QIOW would be quite as flexible as I don't know whether the function modifiers would be accepted by non-TT: type devices (e.g. batch input stream).
Happy New Year,
Galen