How to launch another terminal session from within a terminal session?

Hello. I'm not sure really where to post this within the forum.

I'm new to the MAC OS X, but have used Unix and Linux occasionally (for school). I utilize both xterm and terminal for work.

'm attempting to launch multiple terminal sessions from within a terminal. I know in xterm, running the command:

xterm &

will pop out a new xterm window (while freeing the prompt on your current xterm).

I would like to do the same for terminal. I've tried the following to no avail:

terminal &
term &
term
terminal

Can anybody help me out. I've called Apple support and paid a visit to a local Apple store, but they referred me to the forums.

Thanks in advance! Peace!

Macbook Pro, Mac OS X (10.6.2)

Posted on Mar 11, 2010 2:10 PM

Reply
7 replies

Mar 11, 2010 2:16 PM in response to V.K.

Wow. Thank. You answered the question real fast.

I saw that within the menu prompts on top of the screen. However, I want to launch the terminal from within a bash script.

Within a bash script in Linux or Unix, you can issue the the command: xterm & multiple times to automate xterm session windows. I can't figure it out for terminal.

/usr/bin doesn't contain the binary file to launch a terminal. Not sure where it's located. Would you know?

Mar 11, 2010 2:25 PM in response to skeeloo7

skeeloo7 wrote:
Wow. Thank. You answered the question real fast.

I saw that within the menu prompts on top of the screen. However, I want to launch the terminal from within a bash script.

why? I really don't understand why you'd want to do it that way. you can do this I suppose

osascript -e 'tell application "terminal" to do script ""'

Within a bash script in Linux or Unix, you can issue the the command: xterm & multiple times to automate xterm session windows. I can't figure it out for terminal.

/usr/bin doesn't contain the binary file to launch a terminal. Not sure where it's located. Would you know?

Mar 11, 2010 9:50 PM in response to skeeloo7

If you want to open multiple windows and have them automatically sized and placed exactly as you wish, then first open your windows (command-N), size them, place them, and then choose Windows->Save Windows as Group... from the menu.

To open this configuration later, choose Window->Open Window Group. To manage your Window Groups, visit Terminal->Preferences.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to launch another terminal session from within a terminal session?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.