Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-25-2004, 10:59 AM   #1
LQ Newbie
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Question command to open new shell session


I want to write a simple shell script to open a new session.

Below is the normal step I use.

I use KDE3.1. When I click shell botton at the task bar, the black shell screen show up. I can create a new session by clicking a new shell botton at the bottom-left of the window or click session> New shell. The problem is, I want to run the program I wrote in different session. Every time I want to test my program, I have to click new session and enter command( which is quite long) in each of the session manaully.

Please, can anyone give me a sample script to run at one shell and open new sessions and run the program one at a session automatically. This will be a great help. Thank for every comment.
Old 07-25-2004, 12:27 PM   #2
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I'm not sure if I'm following you here but I think what your asking is totally dependent on what terminal you are using. For instance: I use aterm and if I want to start another shell that runs the script /usr/bin/test_script I would do:

aterm -e /usr/bin/test_script

and another shell would spawn running the test_script application. Check out the man pages for the terminal emulator that you are using to see what the appropriate flag is.
Old 07-27-2004, 11:04 AM   #3
LQ Newbie
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks. I use xterm and the window is poping up but I can't control my parent windows anymore. When I run #xterm, another windows popup. I can't go back to execute any command to my old windows (eg. I type ls and nothing happen. It will exe after I exit the new windows). There should be an option to do this. Can anyone help??
Old 07-28-2004, 01:56 AM   #4
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 4,045

Rep: Reputation: Disabled
I don't know what command you used, since you didn't give an example. Usually you can disassociate your parent terminal by typing
<your-command-here> &
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Open My X Session T-u-N-i-X Linux - Software 4 08-02-2005 03:31 PM
could not open session problem in linux during su - command execution selvaraju Linux - Security 2 08-21-2004 11:24 AM
could not open session bigcc Linux - General 7 04-15-2004 07:40 AM
Cannot open X session spid Linux - General 4 01-28-2004 02:14 PM
could not open session Frankie Linux - Newbie 1 12-01-2003 09:47 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration