<br><font size=2 face="sans-serif">Hope this helps! I have split the ccm
logs for every session. I had written this for doing some automatic metrics
calculations for different CM operations.</font>
<br><font size=2 face="sans-serif">This is a DOS batch file :-)</font>
<br>
<br><font size=2 face="sans-serif">Rem---------------------------Start---------------------------------------------------------------------------</font>
<br>
<br><font size=2 face="sans-serif">For /f &quot;tokens=1-7 delims=:/-,
&quot; %%i in ('echo exit^|cmd /q /k&quot;prompt $D $T&quot;') do (</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; For
/f &quot;tokens=2-4 delims=/-,() skip=1&quot; %%a in ('echo.^|date') do
(</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; set %%a=%%j</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; set %%b=%%k</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; set %%c=%%l</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; set hh=%%m</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; set min=%%n</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; set ss=%%o</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; )</font>
<br><font size=2 face="sans-serif">)</font>
<br>
<br>
<br><font size=2 face="sans-serif">@REM # SET WEEKS LOGS OUTPUT Directories</font>
<br><font size=2 face="sans-serif">set WEEK_NUM=316</font>
<br><font size=2 face="sans-serif">set LOGS_ROOT=E:\cms\Audits\logs</font>
<br><font size=2 face="sans-serif">set LOGS_DIR=%LOGS_ROOT%\%WEEK_NUM%</font>
<br><font size=2 face="sans-serif">if not exist %LOGS_ROOT% ( mkdir %LOGS_ROOT%
)</font>
<br><font size=2 face="sans-serif">if not exist %LOGS_DIR% ( mkdir %LOGS_DIR%
)</font>
<br>
<br><font size=2 face="sans-serif">@REM # SET UI AND ENG LOG FILES FOR
THIS SESSION</font>
<br><font size=2 face="sans-serif">set CCM_UILOG=%LOGS_DIR%\ccm_ui_%USERNAME%_%yy%%mm%%dd%_%hh%%min%.log</font>
<br><font size=2 face="sans-serif">set CCM_ENGLOG=%LOGS_DIR%\ccm_eng_%USERNAME%_%yy%%mm%%dd%_%hh%%min%.log</font>
<br>
<br><font size=2 face="sans-serif">@REM # START CM SYNERGY SESSION - PASSWORD
NEEDS TO BE CHANGED AND USERNAME IF DIFFERENT</font>
<br><font size=2 face="sans-serif">&quot;&lt;path to ccm installation&gt;\bin\ccm.exe&quot;
start -d &lt;database path and name&gt; -n %USERNAME% -pw &lt;YOURPASSWD&gt;
-r developer -m -h &lt;hostname&gt; -nogui -q &gt; %LOGS_DIR%\CCM_ADDR.txt</font>
<br><font size=2 face="sans-serif">for /F %%1 in (%LOGS_DIR%\CCM_ADDR.txt)
do SET CCM_ADDR=%%1</font>
<br>
<br><font size=2 face="sans-serif">@REM # CREATE A TASK AND SET AS DEFAULT
TASK - RELEASE TO BE CHANGED</font>
<br><font size=2 face="sans-serif">&quot;&lt;path to ccm installation&gt;\bin\ccm.exe&quot;
task /cr /s &quot;&lt;give task synopsis here&gt;&quot; /r %USERNAME% /release
&lt;release of the task&gt; /def &gt;%LOGS_DIR%\CCM_TASKNUM.txt</font>
<br>
<br><font size=2 face="sans-serif">@REM # CHECKOUT A FILE - FILE SPEC TO
BE CHANGED</font>
<br><font size=2 face="sans-serif">&quot;&lt;path to ccm installation&gt;\bin\ccm.exe&quot;
co /c &quot;&lt;Check out comments&gt;&quot; &lt;full workarea path to
the file&gt;</font>
<br>
<br><font size=2 face="sans-serif">@REM # STOP CM SYNERGY SESSION</font>
<br><font size=2 face="sans-serif">&quot;C:\Program Files\CMSynergy\ccm62\bin\ccm.exe&quot;
stop</font>
<br>
<br><font size=2 face="sans-serif">@REMOVE CCM_ADDR.TXT file</font>
<br><font size=2 face="sans-serif">if exist %LOGS_DIR%\CCM_ADDR.txt ( del
/f %LOGS_DIR%\CCM_ADDR.txt )</font>
<br><font size=2 face="sans-serif">if exist %LOGS_DIR%\CCM_TASKNUM.txt
( del /f %LOGS_DIR%\CCM_TASKNUM.txt )</font>
<br>
<br><font size=2 face="sans-serif">Rem---------------------------End---------------------------------------------------------------------------</font>
<br>
<br><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td>
<br>
<br>
<br>
<br>
<br><font size=1 face="sans-serif"><b>HS Vivek &lt;HVivek@novell.com&gt;</b></font>
<p><font size=1 face="sans-serif">Sent by: </font>
<br><font size=1 face="sans-serif">opencm-bounces@armory.com</font>
<p><font size=1 face="sans-serif">06/10/2003 03:19 AM</font>
<br><font size=1 face="sans-serif">Please respond to Open CM Mailing List</font>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To:
&nbsp; &nbsp; &nbsp; &nbsp;&lt;opencm@armory.com&gt;<br>
Pradeep George/SVL/SC/PHILIPS@AMEC</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc:
&nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject:
&nbsp; &nbsp; &nbsp; &nbsp;[OpenCM] Query</font>
<p><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Classification:
&nbsp; &nbsp; &nbsp; &nbsp;</font>
<br></table>
<br>
<br>
<br><font size=2><tt>Hi Guys,<br>
<br>
Is it possible from command line to create a task and check out an<br>
object attached to this task ?<br>
<br>
If yes, i would like to know how ?<br>
<br>
Thanks in Advance.<br>
Vivek<br>
<br>
_______________________________________________<br>
OpenCM mailing list<br>
opencm@opencm.net<br>
http://www.armory.com/mailman/listinfo.cgi/opencm<br>
</tt></font>
<br>