daymobrew wrote: I remember this dilemma when I used to work with ClearCase, when it was still Rational and had some corny marketing slogan. I searched the knowledge base on ibm.com and found one article that suggested using startview instead of setview and one that uses the '-exec' parameter.
#!/bin/tcsh # This script allows the user to run the 'extractinfo' command from the vobs # without having to set their view or source /vobs/setup manually. # The script is executed with the following command: # # cleartool setview -exec ~<user>/bin/source_extractinfo.sh myview # # OR with the alias 'lminfo' defined in ~<user>/.aliases # Source vobs so that the extractinfo utility can be used to extract LM information source /vobs/setup # Prompt the user to enter the location and name of the LM echo "Enter: /path/to/loadmodule" # Read user input from stdin set LM = $< echo "Performing 'extractinfo' on the following LM: $LM..." # Run the 'extractinfo' command to extract the LM info extractinfo $LM