If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Using TRIGGER.BAT without a password

Started by cognos_guru, 06 Apr 2009 09:46:27 AM

Previous topic - Next topic

cognos_guru

I am trying to run the trigger.bat file from another server but the client would prefer not to hard code values (other than the dispatcher URL and namespace).  Does anyone know if there a way to run it without hard coding the username/password? 

Christina Riedle

Dear all,

has someone ever made it without a password or at least encrypted password?

many thanks,
Christina

dougp

That depends on what you are actually trying to do.

First, hard-coding a password in a text file is never a good idea.  It certainly should not be in the original trigger.bat.

One option is to create a bat file something like this and have the user enter some information.

CallTrigger.bat
trigger.bat https://SERVERNAME:9300/p2pd/servlet/dispatch %2 %3 namespace %1

So they would use...
CallTrigger.bat trigger username password
...at the command line.

Or you can write a desktop or web app in your language of choice to have them fill in textboxes (one of them probably masked as a password), then make the call.


If you are trying to do something else, like trigger Cognos reports by using a GMSA...
trigger.bat is an SDK program.  The source code is available in the Cognos install.  You can create your own version.