1

I have following requirements for a project initial setup

  1. need to login to remote server using ssh <servername>
  2. need to change default group using newgrp <grpname>
  3. need to set the clearcase view using cleartool setview <viewname>
  4. change dir to clearcase vobs using cd /vobs/proj/dita

I am trying to write a script which I source when I open a new terminal which does all the above and give me the terminal with required setup.

Now the problem is, 3 out of 4 above commands create a new shell.

Can you help me to achieve this?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Sumit
  • 21
  • 2
  • 2
    Note to moderators: this is *not* "too broad", this is the kind of question I have been answering for the past 10 years. If you know anything about ClearCase, this is a very specific question. – VonC Jul 11 '18 at 04:09

1 Answers1

0

Do no use cleartool setview (which does spawn a subshell, as I mentioned before, and as you found out)

Use, as described here, the full path of the view you want to access in your ssh session:

/view/view-tag-name/vobs/some/path

That way, you are sure to remain in the same shell.

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