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

shell

Creates a subprocess to run a shell or other program

APPLICABILITY

ProductCommand type
ClearCasecleartool subcommand
ClearCase LTcleartool subcommand
MultiSitemultitool subcommand

Platform
UNIX
Windows

SYNOPSIS

sh·ell  |   !  [ command [ arg ... ] ]

DESCRIPTION

The shell command creates a subshell.

UNIX—View Context

The subshell is created with the same view context as the current process. If the current process is set to one view, but the working directory view is different, shell uses the working directory view. (For more information, see the pwv reference page.)

The shell command is intended for use in cleartool and multitool interactive mode. If you are using single-command mode, there is no need for this command.

RESTRICTIONS

None.

OPTIONS AND ARGUMENTS

Program to Run in Subprocess

Default
Runs the shell program indicated by your SHELL (UNIX) or ComSpec (Windows) environment variable (or /bin/sh (UNIX) or cmd.exe (Windows), if your environment does not include SHELL/ComSpec). The shell runs interactively until you exit from it.

Note: On Windows, changing the ComSpec variable to a value other than cmd.exe may have undesirable side effects elsewhere in your work environment. To avoid this problem, you can invoke the alternative shell explicitly from cmd.exe, after executing shell.

command [ arg ... ]
Runs a noninteractive shell which, in turn, invokes the program command, (and, optionally, passes it one or more arguments). The subshell exits immediately after executing command.

EXAMPLES

UNIX

  • Create a subshell that is set to the same view as the cleartool process.

    cleartool> shell 

  • Create a subshell, and run a command within it.

    % ! head -2 /etc/passwd 
    sysadm:*:0:0:System V Administration:/usr/admin:/bin/sh
    diag:*:0:996:Hardware Diagnostics:/usr/diags:/bin/csh

Windows

  • Create an interactive subshell, and then run a dir command in that shell.

    cleartool shell 
    > dir *.c 
      ... 
    exit 

  • Create an noninteractive subshell that runs a dir command.

    cleartool shell dir *.c 
      ... 

SEE ALSO

pwv, setview, csh(1), sh(1)

SPONSORED LINKS



 

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