| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Help!!! I don't want to echo user password in Oracle 7 on Vax in Pro* C
mjl wrote:
>
> Hello,
>
> I have written a Pro *C program on the VAX operating system.
>
> When a user types in his or her password, I do not want the password to
> appear on the screen. I can't find any documentation on how to do this at
> all.
>
> Here is a sample of my code:
>
> printf("\n\nEnter username: ");
> scanf("%s", username.arr);
> username.len = strlen((char *) username.arr);
>
> printf("\nEnter password: ");
> /* set term/noecho;
> system("noecho"); */
> scanf("%s", password.arr);
> password.len = strlen((char *) password.arr);
> /* set term/echo;
> system("noecho"); */
> printf("\n");
>
> Thank you.
> Any help would be deeply appreciated. My email address is
> mjl04133_at_iname.com.
>
> Jenene
What you need to do is have the DCL code capture the password (using the appropriate DCL commands to turn echoing off) and then pass that as command line arguments to the C program. Been a few years since I last worked with VMS but I remember that there are a few hoops you have to jump through to pass command line arguments to a program, but once you figure out how to do that the rest should be easy. Received on Mon Nov 22 1999 - 09:28:01 CST
![]() |
![]() |