Aniruddh Joshi
Aniruddh Joshi

Reputation: 1795

What is the syntax to comment a line in a tibco ems script

In a script which looks like below
create queue one
create queue two
create topic three

How can I comment a line?

Upvotes: 3

Views: 948

Answers (3)

Brian Clark
Brian Clark

Reputation: 1

There is no way to run a command against the EMS server that is a comment. The easiest is to let it crash.

I've use // Comment line "Creating queue for XYZ process"

However it still generates an error which wasn't a problem until we have just implemented continuous deployments for EMS and Tibco BW Ears, and it stopped when there was an error coming back from the command.

You could write a quick pre-processor that reads each line of the EMS script file and spits out a separate file that you can just run without errors. I'd do something like

(Your language of choice) for each line in the file if line starts with // then do nothing else write it to the other file end loop

Upvotes: 0

L. Yan
L. Yan

Reputation: 88

Are you referring to the script that will be executed by tibemsadmin binary? You can try to prepend "#" in the front of the line which you don't need.

Upvotes: 0

GhislainCote
GhislainCote

Reputation: 1512

I could find noting in either the tool itself or documentation.

The closest thing to comments you could do is:

echo off some comments here

tibemsadmin does not fail, and don't react to extra parameters. The "echo" command is harmless... so it is a great candidate.

Of course, you might prefer "echo on".

Not a great solution, but the only one I find.

Upvotes: 2

Related Questions