It's all about the answers!

Ask a question

ClearCase Connector sync engine startup scripts?


Mike Johnson (28624221) | asked Jul 28 '09, 3:46 p.m.
In the ClearCase Connector help, the following paragraph appears:

The New ClearCase Synchronized Stream wizard creates a synchronization process start-up script for each ClearCase Synchronized Stream. These scripts are started by the wizard when they are created, and can be re-started from the ClearCase Synchronized Streams view. To ensure that scheduled synchronizations continue to run unattended even though the synchronization host might have been shut down and re-started, you can use host-specific programs to enable the scripts to run automatically whenever the synchronization host starts.

*Where* exactly do the scripts get created? I want to run them at computer startup (as described) so we don't have to have a user logged into the synchronization host, but can't seem to find the scripts.

Thanks in advance,
Mike Johnson

4 answers



permanent link
Mike Johnson (28624221) | answered Jul 28 '09, 4:21 p.m.
OK, scratch that. I found the files under the users\<userdir>\ClearCaseConnector directory. Now my next question -- since this has to run under a particular user account, how would you configure this to run at machine startup? Do you guys install a Windows service that runs the batch file, and then set the service to run automatically?

Thanks,
Mike

permanent link
Geoffrey Clemm (30.1k33035) | answered Jul 28 '09, 4:42 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Yes, one would create a Windows service that runs this batch file. Note
that you have to create that Windows service yourself (the ClearCase
Connector wizard only creates the script, not the Windows service).

Cheers,
Geoff

micjohnson997 wrote:
OK, scratch that. I found the files under the
users\<userdir>\ClearCaseConnector directory. Now my next
question -- since this has to run under a particular user account,
how would you configure this to run at machine startup? Do you guys
install a Windows service that runs the batch file, and then set the
service to run automatically?

Thanks,
Mike

permanent link
Mike Johnson (28624221) | answered Jul 30 '09, 4:42 p.m.
Yes, one would create a Windows service that runs this batch file. Note
that you have to create that Windows service yourself (the ClearCase
Connector wizard only creates the script, not the Windows service).


OK, back to this one again. We tried to run the one of the synchronizer startup scripts as a Windows service. It failed, and of course now that I think about it, Windows services have to conform to several things -- like they need to respond to startup and shutdown commands, etc., sent by the OS. Obviously a batch file will not fit the bill here :)

So has anyone actually configured a cc synchronization startup script to run at system boot time somehow? I am now at a loss as to how to do this, other than I think I might be able to write a Visual Studio project that can then start it up. Seems like this problem would have to be solved already, though... I can't be the first one that wants to automatically start CC-RTC sync engines??

Thanks,
Mike

permanent link
Geoffrey Clemm (30.1k33035) | answered Jul 30 '09, 5:01 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Take a look at http://jazz.net/wiki/bin/view/Main/JbeAsAWindowsService
(and let me know if that didn't help).

Cheers,
Geoff

micjohnson997 wrote:
gmclemmwrote:
Yes, one would create a Windows service that runs this batch file.
Note
that you have to create that Windows service yourself (the ClearCase

Connector wizard only creates the script, not the Windows service).


OK, back to this one again. We tried to run the one of the
synchronizer startup scripts as a Windows service. It failed, and of
course now that I think about it, Windows services have to conform to
several things -- like they need to respond to startup and shutdown
commands, etc., sent by the OS. Obviously a batch file will not fit
the bill here :)

So has anyone actually configured a cc synchronization startup script
to run at system boot time somehow? I am now at a loss as to how to
do this, other than I think I might be able to write a Visual Studio
project that can then start it up. Seems like this problem would
have to be solved already, though... I can't be the first one that
wants to automatically start CC-RTC sync engines??

Thanks,
Mike

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.