What is the syntax for line comment in a quick ems script

In a script that looks like below How can I comment out a line?
create queue one
create queue two
create topic three



+3


source to share


3 answers


I might notice in the tool itself or the documentation.

The closest thing you can do to comments is:

echo off some comments here

      



tibemsadmin does not interrupt and does not respond to additional parameters. The echo command is harmless ... so it's a great candidate.

You can of course prefer "echo".

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

+1


source


Do you mean a script that will be executed by the tibemsadmin binary? You can try adding "#" to the beginning of a line that you don't need.



0


source


There is no way to execute command on EMS server which is a comment. The easiest way is to let it crash.

I am using // Comment line "Create queue for process XYZ"

However, it still generates an error, which was not a problem until we just implemented continuous deployment for EMS and Tibco BW ears, and stopped when the error returned from the team.

You can write a quick preprocessor that reads each line of the EMS script file and produces a separate file that you can simply run without error. I would do something like

(Your language of choice) for each line in the file, if the line starts with // then do not write anything else at the other end of the file

0


source







All Articles