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

programatically obtaining the change set alias (Linux script)

After checking in changes, a new change set is created:
  (1049) ---@ Gerald A. Feldman "<No comment>" 02-Jul-2014 08:07 AM
While I can obtain the alias, 1049 in this case, by a series of lscm list changesets, grep or other Linux commands, I don't see any way to be able to reference the generated name "---@".

0 votes


Accepted answer

Permanent link
The status flags for the change set should always be after the alias. However, the recommended method of parsing command line output is to use JSON. Results are output in JSON when the command is executed with the -j flag.
Jerry Feldman selected this answer as the correct answer

0 votes

Comments

Thanks. The script I am writing will be in Python, so parsing a JSON output should be trivial

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,095

Question asked: Jul 02 '14, 10:26 a.m.

Question was seen: 3,728 times

Last updated: Jul 02 '14, 1:21 p.m.

Confirmation Cancel Confirm