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.
|
One answer
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
Comments I tried your command and other forms of it but it didnt work.. point me where I am going wrong.
vijayakumar ramesh
commented Feb 15 '17, 5:32 a.m.
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.
Donald Nong
commented Feb 16 '17, 3:22 a.m.
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
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.