linux - How to pass encrypted password for execution of a script from Command Task to call pmrep -
scenario
i working on code execute pmrep command. cannot execute unix box code pages different ( unix server executing pmrep command , power centre installed), , dont have other option exceute unix box, because dont have sudo login , connecting citrix , informatica not installed locally.
so have come option of putting pmrep commands in .sh script , passing username, password,environment , path variables env file. executing above script command task in workflow.
i able execute pmrep commands (connect, deploy dg etc) using above process.
now comes problem.
i saving username , password in .env file. remove this.
for pmrep connect command, passing -x $password, pass encrypted password in place of original password. have used pmpasswd utility encrypted password , stored in variable (encrypted_password)
- used variable in place of orginal. -x $encrytped_password
- used variable -x $encrypted_password.
where -x used general password , -x used environmental password
both methods unsuccessful. first 1 saying invalid password , second 1 saying "the environment variable xteyezk9byn91bb4om7xkg== undefined."
please me solution on this. appreciated. please let me know if need more inputs.
informatica(r) pmrep, version [9.1.0 hotfix6], build [496.0111], linux 64-bit
rakesh
it should -x encrypted_password
without $.
Comments
Post a Comment