It's all about the answers!

Ask a question

Return Values for command line


Meenakshi Surendar (1612) | asked Aug 06 '13, 7:24 a.m.
 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


permanent link
Shashikant Padur (4.2k27) | answered Aug 07 '13, 1:29 a.m.
JAZZ DEVELOPER
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 


Meenakshi Surendar commented Aug 14 '13, 8:29 a.m.

 It worked Shashikant. Thanku.


-Meenakshi

Your answer


Register or 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.