problem with the lscm load command
Martin Wassermann (138●6●41●44)
| asked Jan 17 '13, 7:16 a.m.
retagged Jan 17 '13, 9:03 a.m. by Dr. Hans-Joachim Pross (1.1k●44●58) Hello I want to write a lscm batt script that load a workspace. Therefor I have written following script
call lscm login -r https://jazzserver/ccm -u wassermann -n jazzserver
When I run this script, the first line works fine, the scm tool ask me for my password. But the second line ask me for my password again. If I enter my password again the connection is refuse because it already exists. Did anybody see what is wrong with the script? Why didn't the load command use the connection I had created with the login command? Or ist this still a bug in version 4.0 (we migrate to 4.0.1 on Monday)
Thanks, and regards,
|
Accepted answer
If you use the "-c" option, it will prompt for your password and cache it.
Martin Wassermann selected this answer as the correct answer
Comments
Martin Wassermann
commented Jan 17 '13, 9:59 a.m.
Thanks, that helps a lot. But does the lscm tool need a new login for every singel command or is it possible really to reuse one existing login? What about the performance if lscm need to login for every command? 1
I'm not sure what you mean by needing a new login. The password is cached so you don't have to enter it again. You're also using the "-n" option to cache the repository. When you specify the nick for the repository, it will use the username and cached password when you ran the login command.
The lscm invocation launches a daemon so that subsequent calls will be faster. Using scm doesn't launch a daemon so the overhead of running commands with it will be higher. Depending on your use, you may want to use scm if you don't want any daemon running (and tracking a sandbox) after your command is executed.
|
2 other answers
Dr. Hans-Joachim Pross (1.1k●44●58)
| answered Jan 17 '13, 8:57 a.m.
JAZZ DEVELOPER edited Jan 17 '13, 9:05 a.m.
When I just run the scm command and not the lscm-batch without the login before
scm load -r https://jazzserver/ccm -u <user> <workspace name>it works fine for me. I'm asked for the password and the load occurs. Comments Yes, then it works. But I want to user more load commands in my script and I want to avoid entering my password every time. Also for performance issues I want to use the lscm.bat, not the scm.exe |
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.