LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

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


Hi,

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
Crashed_Again
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
supergrass
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
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,642

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
Code:
<your-command-here> &
 
  


Reply


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


All times are GMT -5. The time now is 03:28 AM.

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