| View previous topic :: View next topic |
| Author |
Message |
Bazza LXF regular

Joined: Sat Mar 21, 2009 11:16 am Posts: 1392 Location: Loughborough
|
Posted: Fri Mar 15, 2013 1:33 pm Post subject: Shell script problem... |
|
|
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.
TIA... _________________ 73...
Bazza, G0LCU...
Team AMIGA... |
|
| Back to top |
|
 |
Dutch_Master LXF regular
Joined: Tue Mar 27, 2007 2:49 am Posts: 2358
|
Posted: Fri Mar 15, 2013 2:26 pm Post subject: |
|
|
Theoretically: yes. In practice you'll need an X11 environment (obviously ) and some experiments... Perhaps echo the required command to the child terminal in the create command of said terminal. (bit of C++ programming perhaps?) |
|
| Back to top |
|
 |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1569 Location: Guisborough
|
Posted: Fri Mar 15, 2013 3:14 pm Post subject: |
|
|
man screen
DESCRIPTION
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.
~~~~~~~~~~ _________________
Ubuntu LXDE 12.04 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
|
|
| Back to top |
|
 |
Gordon LXF regular

Joined: Thu Apr 07, 2005 6:01 pm Posts: 209 Location: Bradford, West Yorkshire
|
Posted: Fri Mar 15, 2013 5:33 pm Post subject: |
|
|
Yes
xterm -e script_to_run
or
exec xterm -e script_to_run |
|
| Back to top |
|
 |
Bazza LXF regular

Joined: Sat Mar 21, 2009 11:16 am Posts: 1392 Location: Loughborough
|
Posted: Fri Mar 15, 2013 6:00 pm Post subject: |
|
|
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...
Thanks...
Bazza... _________________ 73...
Bazza, G0LCU...
Team AMIGA... |
|
| Back to top |
|
 |
johnhudson LXF regular
Joined: Wed Aug 03, 2005 2:37 pm Posts: 777
|
Posted: Fri Mar 15, 2013 10:26 pm Post subject: |
|
|
| Maybe too obvious but is there an anywhere in the programs? Should be . |
|
| Back to top |
|
 |
Bazza LXF regular

Joined: Sat Mar 21, 2009 11:16 am Posts: 1392 Location: Loughborough
|
Posted: Sat Mar 16, 2013 12:27 pm Post subject: |
|
|
Hi jh...
No need to worry sussed it... ;o)
See other upload... _________________ 73...
Bazza, G0LCU...
Team AMIGA... |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|