1

For some reason, our company don't support clearcase anymore.So I need to remove it from scripts,use folder to replace it. For the command

Cleartool setview -exec "$RUN_SCRIPT paramter1 paramter2" $MY_CC_VIEW
$RUN_SCRIPT=/vobs/sw/ecomps/tools/script_remote.sh (a script located in view path)

how to replace it? cd a path that script located in ,then execute the command?

cd $MY_CC_VIEW_PATH/vobs/sw/ecomps && tools/script_remote.sh paramter1 paramter2
clara
  • 182
  • 1
  • 2
  • 13

1 Answers1

0

cleartool setview is for setting the view content of dynamic views, so if ClearCase is not running anymore, you would not be able to access any dynamic view anyway.

As I mentioned in "Python and ClearCase setview", never use setview in a script anyway: always use the full /view/viewTag/vobs/aVobTag/... path.

But again, if ClearCase is stopped, that dynamic view path would not be accessible: you should at least checkout snapshot views, whose content would remain accessible even if there is no ClearCase server running.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • thanks @VonC .I have checkout the view content.Now the $MY_CC_VIEW_PATH/vobs/sw/ecomps is a common directory on linux,just has the same path as clear view. If it's ok to cd the path then execute command.does it has the same function as setview -exec? – clara Jan 02 '20 at 09:17
  • If it is a snapshot view path, you won't need setview – VonC Jan 02 '20 at 09:25
  • @clara If it is a dynamic view, using `/view//vobs/` would be the same as `setview`, except it won't have the inconveniences of `setview` I described in https://stackoverflow.com/a/10252612/6309. – VonC Jan 02 '20 at 16:23
  • I am still working on the debug of GNU make,not sure whether it works. – clara Jan 15 '20 at 03:26