IPnom Home • Manuals • ClearCase

 Rational ClearCase Commands Reference

ClearCase Stuff:ClearCase LinksClearCase BooksClearCase Commands ReferenceClearCase ForumsClearCase News
Keyword Live Search (10 results max):
 Type in part of a ClearCase command in the search box.
 
Commands Index:
  intro
  annotate
  apropos
  catcr
  catcs
  cc.icon
  cc.magic
  cd
  chactivity
  chbl
  checkin
  checkout
  checkvob
  chevent
  chflevel
  chfolder
  chmaster
  chpool
  chproject
  chstream
  chtype
  chview
  clearaudit
  clearbug
  cleardescribe
  cleardiffbl
  cleardiff
  clearexport_ccase
  clearexport_cvs
  clearexport_pvcs
  clearexport_rcs
  clearexport_sccs
  clearexport_ssafe
  clearfsimport
  cleargetlog
  clearhistory
  clearimport
  clearjoinproj
  clearlicense
  clearmake
  clearmake.options
  clearmrgman
  clearprojexp
  clearprompt
  cleartool
  clearviewupdate
  clearvobadmin
  comments
  config_ccase
  config_spec
  cptype
  credmap
  creds
  deliver
  describe
  diffbl
  diffcr
  diff
  dospace
  edcs
  endview
  env_ccase
  events_ccase
  export_mvfs
  exports_ccase
  file
  find
  findmerge
  fmt_ccase
  getcache
  get
  getlog
  help
  hostinfo
  init_ccase
  ln
  lock
  lsactivity
  lsbl
  lscheckout
  lsclients
  lscomp
  lsdo
  lsfolder
  lshistory
  ls
  lslock
  lsmaster
  lspool
  lsprivate
  lsproject
  lsregion
  lsreplica
  lssite
  lsstgloc
  lsstream
  lstype
  lsview
  lsvob
  lsvtree
  makefile_aix
  makefile_ccase
  makefile_gnu
  makefile_pmake
  makefile_smake
  makefile_sun
  man
  merge
  mkactivity
  mkattr
  mkattype
  mkbl
  mkbranch
  mkbrtype
  mkcomp
  mkdir
  mkelem
  mkeltype
  mkfolder
  mkhlink
  mkhltype
  mklabel
  mklbtype
  mkpool
  mkproject
  mkregion
  mkstgloc
  mkstream
  mktag
  mktrigger
  mktrtype
  mkview
  mkvob
  mount_ccase
  mount
  msdostext_mode
  mvfslog
  mvfsstorage
  mvfstime
  mvfsversion
  mv
  omake
  pathnames_ccase
  permissions
  profile_ccase
  promote_server
  protect
  protectvob
  pwd
  pwv
  query_language
  quit
  rebase
  recoverview
  reformatview
  reformatvob
  register
  relocate
  rename
  reqmaster
  reserve
  rgy_backup
  rgy_check
  rgy_passwd
  rgy_switchover
  rmactivity
  rmattr
  rmbl
  rmbranch
  rmcomp
  rmdo
  rmelem
  rmfolder
  rmhlink
  rmlabel
  rmmerge
  rmname
  rmpool
  rmproject
  rmregion
  rmstgloc
  rmstream
  rmtag
  rmtrigger
  rmtype
  rmver
  rmview
  rmvob
  schedule
  schemes
  scrubber
  setactivity
  setcache
  setcs
  setplevel
  setsite
  setview
  shell
  snapshot.conf
  softbench_ccase
  space
  startview
  type_manager
  umount
  uncheckout
  unlock
  unregister
  unreserve
  update
  version_selector
  view_scrubber
  vob_restore
  vob_scrubber
  vob_sidwalk
  vob_snapshot
  vob_snapshot_setup
  wildcards_ccase
  winkin
  xclearcase
  xcleardiff
  xmldiffmrg

setview

Creates a process that is set to a dynamic view

APPLICABILITY

ProductCommand type
ClearCasecleartool subcommand

Platform
UNIX

SYNOPSIS

setview [ –log·in ] [ –exe·c cmd-invocation ] view-tag

DESCRIPTION

This command does not require a product license; also, it does not apply to snapshot views.

The setview command creates a process that is set to the specified dynamic view. The new process is said to have a set view context. If you specify an inactive dynamic view—one whose view tag does not appear in the local host's viewroot directory, view—a startview command is invoked implicitly to activate that view.

After you set the dynamic view, you can take advantage of transparency: the ability to use standard pathnames to access version-controlled objects. The associated view_server process resolves a standard pathname to an element into a reference to one of the element's versions. For more information, see the pathnames_ccase reference page.

Using setview in Interactive Mode

The shell command setview creates a subprocess. If you enter the setview command in interactive mode (at the cleartool prompt), the new dynamic view is set in the current process. To push to a subprocess of an interactive cleartool process, use setview –exec cleartool.

Whether or not you have set a dynamic view, a view-extended pathname is interpreted with respect to the explicitly named dynamic view. For example, /view/bugfix/usr/project/foo.c always specifies the version of element foo.c selected by the view bugfix.

RESTRICTIONS

None.

OPTIONS AND ARGUMENTS

Shell Startup Processing

Default
Reads your .cshrc file, but does not read any shell login startup files when starting a shell process.

login
Reads in your shell startup file. No error occurs if this file is missing. Use this option to gain access to your personal aliases, environment variable settings, and so on.

Command to Execute in View Context

Default
A shell process is started, as indicated by your SHELL environment variable; a Bourne shell (/bin/sh ) is started if SHELL has a null value or is undefined. The shell runs interactively until you exit from it.

–exe·c cmd-invocation
Starts a shell process, invokes the specified command line in the dynamic view specified by view-tag, and then returns control to the parent process. This option does not set the view-tag view in the parent process. This command inherits the environment of the shell process.

Specifying the View

Default
None.

view-tag
Any view tag specifying a dynamic view that is registered for the current network region. Use the lsview command to list registered view tags.

EXAMPLES

  • Create a shell process that is set to the dynamic view jackson_fix and run your shell startup script.

    cmd-context  setview -login jackson_fix 

  • Create a subprocess that is set to the dynamic view jackson_fix and run a script named /myproj/build_all.sh in that process. Note that the command string must be enclosed in quotes.

    cmd-context  setview -exec "/myproj/build_all.sh" jackson_fix 

  • Start the ClearCase graphical user interface in the dynamic view test_vu.

    cmd-context  setview –exec xclearcase test_vu 

SPONSORED LINKS



 

ClearCase Links • ClearCase Books • ClearCase Commands Reference • ClearCase Forums • ClearCase News