Is it possible to start a new window of terminal as in Windows: start example.bat
? It opens a new window and runs an command.
Asked
Active
Viewed 92 times
0

Thomas Dickey
- 51,086
- 7
- 70
- 105
1 Answers
0
You can do this using the open
command, or ossascript
. Here are some related questions using those commands in their answers:
- Programmatically launch Terminal.app with a specified command (and custom colors)
- Running a command in a new Mac OS X Terminal window
- What arguments does the Mac's Terminal.app accept?
The open
command is more straightforward, allowing you to specify the name of a script or command to be run, as noted in one answer. That describes this case (referring to open(1)
):
open -a Terminal.app file
where file is the application to be opened. You may have to give its full pathname. The manual describes also a --args
option which it states can be used to pass parameters to the application.

Community
- 1
- 1

Thomas Dickey
- 51,086
- 7
- 70
- 105