Script to launch terminal window?


 
Thread Tools Search this Thread
Operating Systems Solaris Script to launch terminal window?
# 1  
Old 06-30-2005
Question Script to launch terminal window?

Hi,

I am a newbie here. Trying to find a way of writing a script to launch multiple terminal or console windows on solaris 9. I used to be able to do this using cmdtool on older versions of solaris and it was even possible to configure the size and screen position of the window and the title. Need to cut down on time taken to set up an environment I use for testing an application at work.

Cheers.
# 2  
Old 06-30-2005
Ok, You can try:
Code:
$ /usr/bin/term -e "mc"

# 3  
Old 06-30-2005
ok that didn't work I'm afraid. I do not have /usr/bin/term.

I also see the following if I do a "man term" -

File Formats . . . . term(4)
NAME
. . . . term - format of compiled term file


Any other ideas?
# 4  
Old 06-30-2005
I found dtterm which will do what I want but I have not been able to get the "-e" option working to launch a program on the newly launched console window. Anyone managed to do this?
# 5  
Old 06-30-2005
Bug

/usr/bin/term -e "vi" # I mean what term can be and other console, and dir can
be other.
Look, do some commands to find a terminal programs on your unix:
Code:
ls /usr/bin|grep term
ls /usr/bin|grep rxvt
ls /usr/bin|grep console

Just then you can type: /usr/bin/$term -e "vi"
option "-e" is "execute command". Smilie
# 6  
Old 06-30-2005
Quote:
Originally Posted by zylwyz
/usr/bin/term -e "vi" # I mean what term can be and other console, and dir can
be other.
Look, do some commands to find a terminal programs on your unix:
Code:
ls /usr/bin|grep term
ls /usr/bin|grep rxvt
ls /usr/bin|grep console

Just then you can type: /usr/bin/$term -e "vi"
option "-e" is "execute command". Smilie
There is no /usr/bin/term (or any other terminal in /usr/bin) in Solaris 9, except maybe gnome-terminal if gnome is installed, so the OP cannot use that.

/usr/dt/bin/dtterm is "standard" terminal, if using -e the command should be enclosed in quotes if it is more that one word, also it is best to give the full path to the command you want to run.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Toggle between xterm window and standard terminal window

Is it possible to toggle back and forth between an xterm invoked from one tty, and a shell invoked from a different tty? I am running Centos 7 with KDE and booting in non-graphic mode. After logging in on the default window (/dev/tty1) , I can then use ALT-F2 to access a new window (/dev/tty2),... (1 Reply)
Discussion started by: rhgscty
1 Replies

2. Shell Programming and Scripting

Cannot get terminal application to launch with a graphical launcher when successful in terminal

I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Discussion started by: Huitzilopochtli
16 Replies

3. Shell Programming and Scripting

Script to launch a KDE Konsole window with multiple tabs

Gents, I found this script to to launch a KDE Konsole window with multiple tabs.. #!/bin/bash # # Create my standard konsole windows. if ]; then profile=Shell fi sessions=( sh1 $profile 'clear; bash' sh1 $profile 'clear; bash' su1 $profile 'clear; su'... (1 Reply)
Discussion started by: jiam912
1 Replies

4. UNIX for Dummies Questions & Answers

How to regain the focus back to the launch window?

Consider this code snippet below:- char=`which afplay` if then xterm -e 'while true; do clear; echo "Press Ctrl-C to Quit..."; afplay /tmp/pulse.wav; done' & > /dev/null 2>&1 fi This launches a second terminal window that generates a specific waveform for the next calibration of... (4 Replies)
Discussion started by: wisecracker
4 Replies

5. Shell Programming and Scripting

My script doesn't work in the terminal window!

I am inexperienced with scripting and it continues to baffles me speechless I wrote a script so that it counts the number of subset of files (with different prefix) in all subdirectories under the current directory so that find ./ -type d -maxdepth 1 -mindepth 1 > list_of_dir.txtfind all... (23 Replies)
Discussion started by: piynik
23 Replies

6. OS X (Apple)

Can't launch x11 remotely from terminal

After I installed OS X Lion I haven't been able to launch x11 remotely (using ssh) from Terminal. It works fine locally, and also remotely directly from the Xterm. I log in to the unix server at my university from the terminal like this: ssh -l -X login@host.com This used to launch... (1 Reply)
Discussion started by: gnyrf
1 Replies

7. UNIX for Dummies Questions & Answers

Script run everytime a new terminal window is opened

I created a script called title #!/bin/sh echo "^0;$*^G" It will change the terminal window titlebar to what ever I type after the script (title BIG would change titlebar to BIG instead of terminal) Is there a way to make it run so it will work on every terminal window that gets opened.... (1 Reply)
Discussion started by: amason0508
1 Replies

8. Shell Programming and Scripting

How do I launch a command on an existing terminal in unix using PERL

Hello, I have a PERL-TK based GUI from which I want to launch a command on an existing UNIX terminal (this is also the parent terminal for this perl based gui window). The command I want to launch is interactive (there is no intention to interact with that command from the same PERL gui i.e. no... (2 Replies)
Discussion started by: AnuragJindal
2 Replies

9. UNIX for Dummies Questions & Answers

How do you close and launch X Window in the Bash shell?

What is the Unix command(s) to close the X Window in the Bash shell to get me into text mode. Also need the command to relaunch it from the text mode. Thanks. (1 Reply)
Discussion started by: jacatone
1 Replies

10. OS X (Apple)

Need help writing an Applescript to launch a specific Terminal Command...

I developed a script in Lingon (which is an automated script editor developed for OS X) that is used to automatically restart programs only if they crash. The script itself does just that, but I only want it to load if I'm going to use the specific application that it's designed to protect. In the... (2 Replies)
Discussion started by: JFraser1
2 Replies
Login or Register to Ask a Question