Skip to content

Instantly share code, notes, and snippets.

@neekey
Created May 10, 2013 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save neekey/5552351 to your computer and use it in GitHub Desktop.
Save neekey/5552351 to your computer and use it in GitHub Desktop.
在nodeJS中启动一个teminal窗口执行相关进程

Mac

使用open 命令,调用terminal来打开abc这个文件:

open -a /Applications/Utilities/Terminal.app "abc"

期中-a这个参数保证打开一个新的terminal实例

Win

使用start命令:

start node abc

默认就会打开新窗口

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment