[英]OSX script to open a new iTerm window and run a command based on a variable
[英]On osx, how to open new iterm terminal tab from one script then run command in that temrinal window
我正在运行osx。 我有一个脚本,它将运行完整的堆栈,然后在末尾运行grunt。 我希望能够在单独的终端选项卡中分离运行的咕separate声,我正在使用iterm。
我已经尝试过类似的东西
open -a Terminal "cd ~/dev/work/poc/user-interface/src/main/webapp; grunt"
有任何想法吗?
像这样:
#!/bin/bash
osascript -e '
tell application "Terminal"
do script "date"
activate
end tell'
用您想要的date
替换date
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.