How to start up another process in a new Terminal window

Hi,

I have a program that runs on the command line in Terminal. Within the program, I need to be able to start up a new Terminal window and start a new instance of the program (with different arguments). I am able to accomplish this using xterm. But instead of relying on xterm, I would like to accomplish this in Terminal. The program produces useful screen output so this is the reason a new Terminal window needs to be opened.

Does anyone have a suggestion how I can accomplish this? I have looked extensively into the "open" command with no solution. The open command will start up a new instance of the program, but it does not process the arguments supplied to the program. Even using the --args argument for open, my Fortran program completely ignores these arguments.

Thank you for any suggestions.

Mac Pro, Mac OS X (10.6.7)

Posted on Mar 30, 2011 1:21 PM

Reply
16 replies

Apr 1, 2011 6:12 PM in response to etresoft

I added that line, but it is now prompting me with the question as to whether or not to close the window and doing so will terminate the running processes. The 'close front window' happens right away. Is there a way to tell Terminal in the script to wait until all processes except login and bash are done before closing window? My program can take some time to finish.

Also, I'm trying to set the title of the new Terminal window by using


set custom title of first window to "New process"


but this has the effect of changing the titles of every opened Terminal window. How can I set the title for just the new window?

Thanks.

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 start up another process in a new Terminal window

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