Return Values for command line
Hi,
I use RTC command lines in a perl script.
for instance, when i do > lscm accept.... from a perl script.
perl variable $? is returning -1 even if the status of accept command is "Workspace unchanged" and returning as failed.
is there a better way we can differentiate accept command from returning "workspace unchanged" with an actual error?
-Meenakshi.
|
Accepted answer
Which version of RTC are you using? From 4.0.1 onwards, a workspace unchanged returns with an error code of 52. Prior to that it used to return as success (0).
Meenakshi Surendar selected this answer as the correct answer
Comments
Meenakshi Surendar
commented Aug 07 '13, 2:34 a.m.
Thanku Shashikant,
i use RTC 4.0.1, i shall check for return value 52 and let you know.
Meenakshi Surendar
commented Aug 14 '13, 8:29 a.m.
It worked Shashikant. Thanku.
-Meenakshi
|
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.