The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Bash: Exiting while true loop when terminal is not the focus window acclaypool Shell Programming and Scripting 2 02-25-2008 06:02 PM
Creation of a script to launch several programs j.middlefinger UNIX for Dummies Questions & Answers 3 02-18-2008 04:09 PM
How to launch a Csh shell script using Excel Macro ? Raynon Shell Programming and Scripting 1 11-08-2006 12:22 PM
Find and activate a terminal window cmp1jrv SUN Solaris 0 01-27-2005 12:48 PM
How do I dial a number from the terminal window? fundidor UNIX for Dummies Questions & Answers 12 12-29-2004 04:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-30-2005
omerta's Avatar
omerta omerta is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 3
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 (permalink)  
Old 06-30-2005
zylwyz's Avatar
zylwyz zylwyz is offline
Registered User
  
 

Join Date: Jun 2005
Location: I'm living in Unix :)
Posts: 53
Ok, You can try:
Code:
$ /usr/bin/term -e "mc"
  #3 (permalink)  
Old 06-30-2005
omerta's Avatar
omerta omerta is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 3
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 (permalink)  
Old 06-30-2005
omerta's Avatar
omerta omerta is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 3
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 (permalink)  
Old 06-30-2005
zylwyz's Avatar
zylwyz zylwyz is offline
Registered User
  
 

Join Date: Jun 2005
Location: I'm living in Unix :)
Posts: 53
Smile

/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".
  #6 (permalink)  
Old 06-30-2005
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,206
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".
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0