Jump to content

Start development environment

- - - - -

  • Please log in to reply
1 reply to this topic

#1
ReignInChaos

ReignInChaos

    Learning Programmer

  • Members
  • PipPipPip
  • 46 posts
Okay, by nature I am an extremely lazy person. When I sit down at my machine I would like to run one script to open new terminals (xterm or w/e) and inside each newly spawned terminal, run another script to setup environment, etc and most importantly allow the new shell to persist interactively. I am in Solaris and do not have access to many GNU / Open Source resources. The xterm '-e' flag allowed me to execute commands / scripts but the terminal died after execution.

I already have a script to spawn multiple xterms using '&' but I cannot figure out how to automatically execute a command prior the interactive prompt appearing.

Any help is appreciated.

#2
ReignInChaos

ReignInChaos

    Learning Programmer

  • Members
  • PipPipPip
  • 46 posts
For those interested, I was able to solve my problem with a more elegant solution. I did not think this was the case, but if you are in a terminal and spawn a new terminal from the command line, it inherits the environment from the parent terminal. Another issue I had, which I was originally unaware, upon setting a clearcase view from a terminal, cleartool actually spawns a new terminal but uses the existing window. Therefore, if one set a view in a script, all subsequent commands will not be executed until the child process is terminated. See https://www-304.ibm....uid=swg21119859 for more info.

I ended up using their 2nd workaround which solved everything.

Thought I would share.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users