-   Linux - General (
-   -   command to open new shell session (

supergrass 07-25-2004 11:59 AM

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.

Crashed_Again 07-25-2004 01:27 PM

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.

supergrass 07-27-2004 12:04 PM

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??

JZL240I-U 07-28-2004 02:56 AM

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> &

All times are GMT -5. The time now is 08:47 AM.