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

How to pipeout the SCM CLI results (eg.listing locks in a stream)?

I am trying to list all the file locks in a stream, from SCM CLI. I am unable to pipeout the results.Suggestions please.
Find the below image

0 votes



One answer

Permanent link

Looks like you are not using the regular command shell... probably powershell?

This may work: cmd /c lscm ls locks  -r local -s 1109 -m 10 '> file.txt 2'>'&1

0 votes

Comments

I tried your command and other forms of it but it didnt work.. point me where I am  going wrong.
Are you sure that out put of SCM CLI can be written to file ?

 

I am using the regular command shell.

 The command I listed out was to be used with the powershell. Piping is nothing to do with scm cli and yes it works.

Vija, if using a regular command shell, simply remove all the single quote sign in the command, so the end of the command looks like: > file.txt 2>&1

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,015
× 7,487
× 1,699

Question asked: Feb 14 '17, 5:44 a.m.

Question was seen: 2,789 times

Last updated: Feb 16 '17, 3:22 a.m.

Confirmation Cancel Confirm