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

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.

0 votes


Accepted answer

Permanent link
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

0 votes

Comments

Thanku Shashikant,

i use RTC 4.0.1, i shall check for return value 52 and let you know.

-Meenakshi 

 It worked Shashikant. Thanku.


-Meenakshi

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,025
× 17
× 16

Question asked: Aug 06 '13, 7:24 a.m.

Question was seen: 4,896 times

Last updated: Aug 14 '13, 8:29 a.m.

Confirmation Cancel Confirm