I am writing a UNIX .ksh script and need to send the login password of the login id that is executing the script to a command that I am executing in the script. I don't want that password to be seen by anyone except whoever is executing the script.
It is a command that I am not sure is UNIX or home-grown. It is "become" which lets a user become another user (like su). In my script I have a line:
>become userid
I need to send the become command the user id of the user who is executing the script because, when run on the command line, the "become" command prompts for the user's password who is running the script.