The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 08-30-2007
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Quote:
Originally Posted by gopsman View Post
hi

i want a script which would invoke a different prompt and execute commands in that prompt and comes back. Is it possible?
What kind of prompt ? A new shell or a new xterm window ?

For xterm, you can probably use
Code:
xterm -e <progname> [args]

See man xterm for more details.

For shell, you can use the -c flag i.e.
Code:
[k]sh -c

See man sh/ksh