on 2014 Apr 08 9:49 AM
When you use SQLA tools like e.g. dbupdate or similar, to automate specific tasks, how can you use the -c parameter without showing the password? Or exists any alternative approach which hides the password from the command line?
Request clarification before answering.
AFAIK, all (or at least most) utilities support the @data command line parameter in conjunction with configuration files for that use:
@data Reads in options from the specified environment variable or configuration file. See Configuration files.
If you want to protect passwords or other information in the configuration file, you can use the File Hiding utility to obfuscate the contents of the configuration file. See File Hiding utility (dbfhide).
(Note, AFAIK DBFHide itself does usually just obfuscate the files - unless you run it on Windows with -w or -wm.)
Another (possibly preferred) approach for scheduled tasks would be to rely on scheduled events that can run on their own without explicit credentials. That way the server can itself do backups and the like.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
30 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.