[OpenCM] Query
pradeep.george at philips.com
pradeep.george at philips.com
Tue Jun 10 07:28:56 PDT 2003
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.
This is a DOS batch file :-)
Rem---------------------------Start---------------------------------------------------------------------------
For /f "tokens=1-7 delims=:/-, " %%i in ('echo exit^|cmd /q /k"prompt $D
$T"') do (
For /f "tokens=2-4 delims=/-,() skip=1" %%a in ('echo.^|date') do
(
set %%a=%%j
set %%b=%%k
set %%c=%%l
set hh=%%m
set min=%%n
set ss=%%o
)
)
@REM # SET WEEKS LOGS OUTPUT Directories
set WEEK_NUM=316
set LOGS_ROOT=E:\cms\Audits\logs
set LOGS_DIR=%LOGS_ROOT%\%WEEK_NUM%
if not exist %LOGS_ROOT% ( mkdir %LOGS_ROOT% )
if not exist %LOGS_DIR% ( mkdir %LOGS_DIR% )
@REM # SET UI AND ENG LOG FILES FOR THIS SESSION
set CCM_UILOG=%LOGS_DIR%\ccm_ui_%USERNAME%_%yy%%mm%%dd%_%hh%%min%.log
set CCM_ENGLOG=%LOGS_DIR%\ccm_eng_%USERNAME%_%yy%%mm%%dd%_%hh%%min%.log
@REM # START CM SYNERGY SESSION - PASSWORD NEEDS TO BE CHANGED AND
USERNAME IF DIFFERENT
"<path to ccm installation>\bin\ccm.exe" start -d <database path and name>
-n %USERNAME% -pw <YOURPASSWD> -r developer -m -h <hostname> -nogui -q >
%LOGS_DIR%\CCM_ADDR.txt
for /F %%1 in (%LOGS_DIR%\CCM_ADDR.txt) do SET CCM_ADDR=%%1
@REM # CREATE A TASK AND SET AS DEFAULT TASK - RELEASE TO BE CHANGED
"<path to ccm installation>\bin\ccm.exe" task /cr /s "<give task synopsis
here>" /r %USERNAME% /release <release of the task> /def
>%LOGS_DIR%\CCM_TASKNUM.txt
@REM # CHECKOUT A FILE - FILE SPEC TO BE CHANGED
"<path to ccm installation>\bin\ccm.exe" co /c "<Check out comments>"
<full workarea path to the file>
@REM # STOP CM SYNERGY SESSION
"C:\Program Files\CMSynergy\ccm62\bin\ccm.exe" stop
@REMOVE CCM_ADDR.TXT file
if exist %LOGS_DIR%\CCM_ADDR.txt ( del /f %LOGS_DIR%\CCM_ADDR.txt )
if exist %LOGS_DIR%\CCM_TASKNUM.txt ( del /f %LOGS_DIR%\CCM_TASKNUM.txt )
Rem---------------------------End---------------------------------------------------------------------------
HS Vivek <HVivek at novell.com>
Sent by:
opencm-bounces at armory.com
06/10/2003 03:19 AM
Please respond to Open CM Mailing List
To: <opencm at armory.com>
Pradeep George/SVL/SC/PHILIPS at AMEC
cc:
Subject: [OpenCM] Query
Classification:
Hi Guys,
Is it possible from command line to create a task and check out an
object attached to this task ?
If yes, i would like to know how ?
Thanks in Advance.
Vivek
_______________________________________________
OpenCM mailing list
opencm at opencm.net
http://www.armory.com/mailman/listinfo.cgi/opencm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://deepthought.armory.com/pipermail/opencm/attachments/20030610/90047b8d/attachment.htm
More information about the opencm
mailing list