I'm trying to use teradata wallet for encrypt user password on some script.
I have insert an item named PWD_SSF_DEV and then I've crete the script deptquery.txt.
This is the source code:
If I run BTEQ < deptquery.txt , work correctly, but I would like to use the wallet also in a script bash like this:
Thank you for helping!
I change my script in
The solution is to use the escape char (\) before the command $tdwallet, so this is my script
Quoting "EOF" and escaping the dollar-sign do the same thing -- prevent the shell from interpreting the $tdwallet keyword as a shell script variable.