Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Help in masking password

by Tanktalus (Canon)
on Aug 15, 2006 at 17:58 UTC ( #567512=note: print w/replies, xml ) Need Help??

in reply to Help in masking password

One way is to put it in your environment. If you're in a shell script, export (bourne-shell and derivitives) or setenv (C shell and derivitives) should help there. If it's a perl script calling another perl script, see the %ENV hash.

Another way, since this is DB2, is to discard the password and username altogether. Run it as a user who has the authority to do what you need, and no password is required. DB2 will use the OS authentication to confirm who you are. This is how I've generally done this - avoids all the hassles of dealing with passwords in plain-text perl code.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://567512]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (1)
As of 2023-09-22 01:25 GMT
Find Nodes?
    Voting Booth?

    No recent polls found