Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Shell script problem...

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Bazza
LXF regular


Joined: Sat Mar 21, 2009 11:16 am
Posts: 1462
Location: Loughborough

PostPosted: Fri Mar 15, 2013 1:33 pm    Post subject: Shell script problem... Reply with quote

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
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2422

PostPosted: Fri Mar 15, 2013 2:26 pm    Post subject: Reply with quote

Theoretically: yes. In practice you'll need an X11 environment (obviously Razz) 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
View user's profile Send private message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1658
Location: Guisborough

PostPosted: Fri Mar 15, 2013 3:14 pm    Post subject: Reply with quote

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.
~~~~~~~~~~
_________________

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
Back to top
View user's profile Send private message MSN Messenger
Gordon
LXF regular


Joined: Thu Apr 07, 2005 6:01 pm
Posts: 209
Location: Bradford, West Yorkshire

PostPosted: Fri Mar 15, 2013 5:33 pm    Post subject: Reply with quote

Yes

xterm -e script_to_run

or

exec xterm -e script_to_run
Back to top
View user's profile Send private message Yahoo Messenger
Bazza
LXF regular


Joined: Sat Mar 21, 2009 11:16 am
Posts: 1462
Location: Loughborough

PostPosted: Fri Mar 15, 2013 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
johnhudson
LXF regular


Joined: Wed Aug 03, 2005 2:37 pm
Posts: 857

PostPosted: Fri Mar 15, 2013 10:26 pm    Post subject: Reply with quote

Maybe too obvious but is there an
Code:
exit
anywhere in the programs? Should be
Code:
return
.
Back to top
View user's profile Send private message
Bazza
LXF regular


Joined: Sat Mar 21, 2009 11:16 am
Posts: 1462
Location: Loughborough

PostPosted: Sat Mar 16, 2013 12:27 pm    Post subject: Reply with quote

Hi jh...

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

See other upload...
_________________
73...

Bazza, G0LCU...

Team AMIGA...
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast