Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: Check Synergy connection from CLI
Topic Summary:
Created On: 16-May-2007 13:39
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 16-May-2007 13:39
User is offline View Users Profile Print this message


Ronen Ben-Chamo

Posts: 84
Joined: 1-Dec-2005

Hi All,

Actually this question is more related to dos then Synergy,
How you can help me,

I would like to check if the connection Succeeded or not in batch file
so I try to redirect the output and error messages to log file but ccm start display the output at the screen
see example below:

for /f "tokens=1" %f in ('ccm start /m /nogui /n ronenb /r developer /pw 123 /d /ccmdb/comsys2 /h cm1il02
cm /home c: ') do set CCM_ADDR=%f > Log/synergysession.log

for /f "tokens=1" %f in ('ccm start /m /nogui /n ronenb /r developer /pw 123 /d /ccmdb/comsys2 /h cm1il02
cm /home c: ') do set CCM_ADDR=%f 2> Log/synergysession.log

I also try to write at the batch file
if NOT %ERRORLEVEL% == 0 goto error

error at the screen
Warning: Engine startup failed.
Warning: SYNERGY/CM startup failed.

How can I put this error in the log file?

Ronen



-------------------------
Ronen Ben-Chamo
Configuration Managment
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.