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

Author Topic: Using TRIGGER.BAT without a password  (Read 1724 times)

cognos_guru

  • Guest
Using TRIGGER.BAT without a password
« on: 06 Apr 2009 09:46:27 am »
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? 

Offline Christina Riedle

  • Associate
  • **
  • Join Date: Sep 2023
  • Posts: 1
  • Forum Citizenship: +0/-0
Re: Using TRIGGER.BAT without a password
« Reply #1 on: 12 Sep 2023 08:24:36 am »
Dear all,

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

many thanks,
Christina

Offline dougp

  • Statesman
  • ******
  • Join Date: Jul 2014
  • Posts: 911
  • Forum Citizenship: +30/-2
Re: Using TRIGGER.BAT without a password
« Reply #2 on: 12 Sep 2023 11:35:10 am »
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
Code: [Select]
trigger.bat https://SERVERNAME:9300/p2pd/servlet/dispatch %2 %3 namespace %1
So they would use...
Code: [Select]
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.