1
votes

It is possible to run an ems script using

tibemsadmin -server tcp://localhost:7222 -user <username> -password <password> -script <file>

however, this of course makes your password visible in ps, top, etc, and also in any shell history. Is it possible to run a tibco script and be prompted for the password? Just omiting the -password flag results in "invalid user or password" user.

2

2 Answers

1
votes

If you run tibemsadmin with just the script argument, you can then put the connect command in your script, which can contain the username and password. If a password is not specified for the connect command, then the user will be prompted to enter a password.

0
votes

to my knowledge it is not possible to achieve the behaviour you want just using tibemsadmin. However you have (at least) two alternatives to solve your issue:

  • option 1) use the EMS APIs and write a program to perform what you need to do
  • option 2) use third party tools (e.g. EMS Butler) that support password encryption and use a separate credentials file, so the password is not shown

Hope this helps.

Daniele