0

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.

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

1 Answers1

0

You can do this using the open command, or ossascript. Here are some related questions using those commands in their answers:

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