2

I want to do automation of the process of taking latest code from ClearCase.
I am able to get latest using rcleartool in cmd successfully.

Now, I need to automate this cmd script as well.
Can someone please suggest me how should I go about it?
Should I create a .bat file?

Also, does rcleartool command return some value (0 or 1) (apart from the "done loading" message, so that my program can check whether or not the update process was successful?

Mofi
  • 46,139
  • 17
  • 80
  • 143
TyagiP
  • 51
  • 3

1 Answers1

1

rcleartool update can be put in a script (like a .bat one, as long as the %PATH% is correct) as is:

cd /d C:\path\to\snapshot\view
rcleartool update

The cleartool man page mentions (and it should be the same for rcleartool)

The exit status from single-command mode depends on whether the command succeeded (zero exit status) or generated an error message (nonzero exit status).

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250