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

How to tell if there is an active scm daemon running with current login on Linux

I am wrting a script to load a number of objects into the repository workspace. I don't want to place my login credentials in a script. But, I do want the script to be able to query if a login is present for the repository. I would prefer using an scm command to do this rather than using the system to check the processes.

Does lscm login return an error code if the login is already active. Or does it start another daemon.


0 votes


Accepted answer

Permanent link
Using 'lscm' will reuse a running daemon if possible. You can check for running daemons using 'scm list daemons' (note that 'scm' is used instead of 'lscm'). If you're worried about daemon processes still running, you should use 'scm' as that will not leave a daemon running after execution.
Jerry Feldman selected this answer as the correct answer

0 votes

Comments

Thanks. I did notice 2 daemons running, but one may have been the result of an error.

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,016

Question asked: Jun 25 '14, 12:29 p.m.

Question was seen: 3,914 times

Last updated: Jun 25 '14, 1:57 p.m.

Confirmation Cancel Confirm