spawning new shells using dtterm in Solaris 8


 
Thread Tools Search this Thread
Operating Systems Solaris spawning new shells using dtterm in Solaris 8
# 1  
Old 07-25-2004
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

Last edited by Rocketman8541; 07-26-2004 at 11:45 PM..
# 2  
Old 07-26-2004
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.
# 3  
Old 07-26-2004
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.
# 4  
Old 07-27-2004
Quote:
I tried man dtterm and man /usr/dt/bin/dtterm, any suggestions?
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
# 5  
Old 08-31-2004
The manpath advice worked great RTM thanks,

still working on the dtterm -e project, will post updates soon
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Script on Solaris spawning 2 processes for one shell script execution

Hi, I am having a shell script on Solaris 10 which has a while loop as shown below. #!/usr/bin/ksh # while do sleep 60 done Name of the shell script is coldcentric.sh. I executed script /DATAWAREHOUSE/LOAD/Scripts/coldcentric.sh from a command task in Informatica worklow as... (3 Replies)
Discussion started by: chekusi
3 Replies

2. UNIX for Dummies Questions & Answers

dtterm to list a folder contents in new window

Hi everyone,:cool: thank you in advance for any help on this I have a dtterm command to open a new small terminal window with a contents of log, and it works fine. dtterm -title "my.log" -geometry =40x30+0+550 -fn 6x13 -e tail -n 40 -f /home/logs/user.log & However what I want to do... (4 Replies)
Discussion started by: golfcents
4 Replies

3. Shell Programming and Scripting

lost the $ prompt - am I spawning shells??

When trying to get the correct syntax to cron a script that creates a file with the date stamp as its output, sometimes I get these results: - from the command line, I may encounter an error that leaves me without the usual $ prompt. Am I in a new shell? I try to exit it with 'exit' or :q! and... (1 Reply)
Discussion started by: landog
1 Replies

4. Solaris

launching an automated telnet session using dtterm

Hi , I have to write a shell script which would be invoked from a Java program. The job of this script would be to launch a telnet session i was using dtterm for the same and the expect command to automate that. spawn dtterm -e telnet <server ip address> expect "Username:" send... (0 Replies)
Discussion started by: rajeev_solanki
0 Replies

5. HP-UX

Caps lock dtterm

Hello, We are having a problem with running dtterm off a RHEL server. Logging into an HP-UX server from a RHEL 5.1 desktop, setting DISPLAY and running dtterm, the caps lock does not work. We have been playing with xmodmap & stty but to no avail. Any help appreciated. mgb (7 Replies)
Discussion started by: mgb
7 Replies

6. Red Hat

Caps lock dtterm

Hello, We are having a problem with running dtterm off a RHEL server. Logging into an HP-UX server from a RHEL 5.1 desktop, setting DISPLAY and running dtterm, the caps lock does not work. We have been playing with xmodmap & stty but to no avail. Any help appreciated. mgb (1 Reply)
Discussion started by: mgb
1 Replies

7. UNIX for Advanced & Expert Users

Changing text color in existing xterm or dtterm

On solaris and irix systems, I'm using csh in an existing xterm or dterm and would like to change the text colors. How do I accomplish this? Thanks (1 Reply)
Discussion started by: fjc
1 Replies

8. Shell Programming and Scripting

Spawning new shells from the command line in OpenStep 4.2

Hi all, Im trying to figure out what the command would be to launch terminal windows from the command line in Open Step 4.2 . (looking for something similiar like /usr/bin/xterm or /usr/bin/dtterm etc) echo $TERM = vt100 echo $SHELL = /bin/csh Im combing over alot of OpenStep 4.2 and... (3 Replies)
Discussion started by: Rocketman8541
3 Replies

9. UNIX for Dummies Questions & Answers

activating ./dtterm

Working of a Aix 4.3 (using ksh) Have started dtlogin daemon . < root 26376 1 0 14:07:19 - 0:08 ./dtlogin -daemon > Have set dtconfig -e < The CDE environment is Already set as the default User Interface. > Have executed " export DISPLAY=10.1.187.86:0.0 Once all this is... (4 Replies)
Discussion started by: buRst
4 Replies

10. UNIX for Dummies Questions & Answers

protect dtterm

we have an hp-ux and a user requested me if i can password protect the dtterm. i know that this is possible but can you give me some hints in making this happen? thanks :cool: (2 Replies)
Discussion started by: inquirer
2 Replies
Login or Register to Ask a Question