Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can I pass properties values to JTSMon on the commandline?

 we keep having interruptions of our system with JTSMon running on it.  this disrupts the cycle interval we want 
(midnight to midnight)..

I can calculate how long this run should be for (have to reboot in a few minutes for some system patch), so it would be nice if I could pass this on the commandline to override the properties file. 

thanks

0 votes


Accepted answer

Permanent link
JTSMon first processes the command and then the file=propertyFile command line arguments to initialize properties.

After that it  will process any remaining command line arguments in the form of name=value property values to override the property file.
sam detweiler selected this answer as the correct answer

0 votes

Comments

 great!, thanks..

and to do that in Windows (run til 3 mins past midnight)


setlocal enableextensions enabledelayedexpansion
set HOUR=!time:~0,2!
set MINS=!time:~3,2!
set /a runtime = 1443 -  !HOUR!*60  + !MINS! 
java -jar JTSMon.jar monitor ... other parms...  SEQ_RUN_LENGTH_ARG="!runtime!m"


One other answer

Permanent link
JTSMon first processes the command and then the file=propertyFile command line arguments to initialize properties.

After that it  will process any remaining command line arguments in the form of name=value property values to override the property file.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,024
× 9

Question asked: Mar 24 '14, 11:25 a.m.

Question was seen: 4,417 times

Last updated: Mar 24 '14, 4:02 p.m.

Confirmation Cancel Confirm