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.
1 reply to this topic
#1
Posted 08 July 2011 - 04:53 AM
|
|
|
#2
Posted 08 July 2011 - 07:43 AM
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.
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


Sign In
Create Account


Back to top









