It's all about the answers!

Ask a question

How to redirect RTC scm command line logs to a different directory?


Sunil Kumar R (1.1k13044) | asked Dec 17 '14, 12:40 a.m.
JAZZ DEVELOPER
Currently, when RTC scm commands are run. Taking an example of the following simple queries:
scm --non-interactive login -r https://clm501:9443/ccm -u clmadmin -P clmadmin -n clm_501
scm --non-interactive list connections
1) logs 'scm0.log' to 'scmN.log' is created in <userLocal>\jazz-scm\logs

2) logs '<timestamp>.log' are created in <RTCEclipseClientInstall>\scmtools\eclipse\configuration :


Now, logs mentioned in 1) can be redirected using --config. aka ; scm --config <path>
How to redirect the timestamp logs in 2) i.e., in <RTCeclipseInstall>\scmtools\eclipse\configuration to a different location?

The requirement is to avoid logs being generated in the install path.

Thanks in advance,

Accepted answer


permanent link
Shashikant Padur (4.2k27) | answered Dec 19 '14, 12:58 a.m.
JAZZ DEVELOPER
edited Dec 19 '14, 12:58 a.m.
You need to add the following lines to the scm.ini file -Dosgi.configuration.area=&lt;configuration directory location&gt;

Note: This would change the location of all the files under the configuration directory and not only the log file.
Not sure if there is a way to just change the location of the log file. 
Sunil Kumar R selected this answer as the correct answer

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.