spawning new shells using dtterm in Solaris 8

Hi all,

First time poster here. Great forum.

Im trying to spawn new shells and pass commands to the new shells in a solaris 8 environment utilizing dtterm and its option -e.

I can successfully spawn a window utilizing the following code:

/usr/dt/bin/dtterm -display <ip.address> &

This will create a new dtterm shell and return control to the command line in the originating shell. (the -display option is neccessary because I am utilizing VMware).

In the new shell im trying to launch a simple source command which sets up some environment variables and runs some diagnostic programs. This command has been tried and runs successfully. Permissions for this command are set to 777

so ideally my command would look something like: /usr/dt/bin/dtterm -display <IP address>-e source /home/PSMENV &

where 'source /home/PSMENV' is the command with the absolute address of the file to be sourced.

THE PROBLEM:
Whenever i try this the new window will open, run the command and then close, often happening so quickly it just looks like a quick window flash.
I have tried encapsulating the command in single and double quotes, this yields a no such file or directory response.

Im trying to get this too work so the window will open, run the command, and STAY OPEN.

What can I do to make this happen?

Any help would be appreciated

*edit* Sorry for the confusion its dtterm

Read the Rules

No double posting - I deleted your other post after seeing it was word for word the same as this.

Second, please verify which you are using, dtterm or xterm. Dtterm with the -e option runs the command and exits (like doing a rsh to a server with a command). Xterm with the -e option does not exit. Yet your subject and first line look like you are talking about dtterm yet all your example of commands have xterm. Which are you looking to use?

If dtterm, I am not sure you will get there. After reading the man page I don't see any options that would cause it to not exit. It works the same in Solaris 8, 9, and 2.6 so it's been that way for some time. I found nothing mentioning this difference between xterm and dtterm or any mention of the exiting of the window on sunsolve.

Your right i should have posted and request this thread be deleted. After looking at the other forum I thought this thread was more appropriate for the Shell programming forum.

Yes I am using dtterm but now that I know about the xterm -e properties perhaps I can go in that direction. I had wanted to use dtterm purely for aesthetic preferences

Thank you for consulting the man pages for dtterm for some reason my system doesnt have an entry for dtterm or xterm. (I tried man dtterm and man /usr/dt/bin/dtterm, any suggestions? )

Ill try the xterm -e option and see what happens.

Yes, check your values for $MANPATH (echo $MANPATH or env). Normally, the path for looking up man pages is limited to /usr/share/man or your OS equivalent. Add /usr/dt/man and /usr/openwin/man to the MANPATH

csh - setenv MANPATH /usr/share/man:/usr/dt/man
sh,ksh - MANPATH=$MANPATH:/usr/dt/man; export MANPATH

The manpath advice worked great RTM thanks,

still working on the dtterm -e project, will post updates soon