Page 1 of 1

Shell script problem...

PostPosted: Fri Mar 15, 2013 1:33 pm
by Bazza
Hi guys and gals...

I can't find anything relevant from thw WWW...

Bash question:-

Is it possible to open a new Terminal tab or Window and launch a shell script inside this new Terminal from a shell script running in the original Terminal?

Just answer Yes or No...

If it is possible then I will attempt at finding and doing it.


PostPosted: Fri Mar 15, 2013 2:26 pm
by Dutch_Master
Theoretically: yes. In practice you'll need an X11 environment (obviously :P) and some experiments... Perhaps echo the required command to the child terminal in the create command of said terminal. (bit of C++ programming perhaps?)

PostPosted: Fri Mar 15, 2013 3:14 pm
by Ram
man screen

Screen is a full-screen window manager that multiplexes a physical ter‐
minal between several processes (typically interactive shells). Each
virtual terminal provides the functions of a DEC VT100 terminal and, in
addition, several control functions from the ISO 6429 (ECMA 48, ANSI
X3.64) and ISO 2022 standards (e.g. insert/delete line and support for
multiple character sets). There is a scrollback history buffer for
each virtual terminal and a copy-and-paste mechanism that allows moving
text regions between windows.

PostPosted: Fri Mar 15, 2013 5:33 pm
by Gordon

xterm -e script_to_run


exec xterm -e script_to_run

PostPosted: Fri Mar 15, 2013 6:00 pm
by Bazza
Thanks guys...

Gordon, many thanks almost exactly what I want except on exiting the child script the xterm terminal closes down. I want it to remain open and manually close it done when I am actually finished with it...

Will pursue it further...



PostPosted: Fri Mar 15, 2013 10:26 pm
by johnhudson
Maybe too obvious but is there an
Code: Select all
anywhere in the programs? Should be
Code: Select all

PostPosted: Sat Mar 16, 2013 12:27 pm
by Bazza
Hi jh...

No need to worry sussed it... ;o)

See other upload...