Opening a terminal with a terminal - Mac

瘦欲@ 提交于 2019-12-25 18:59:27

问题


I just need the command for opening a new terminal in a terminal and then being able to identify that terminal and then run some java code in that terminal.


回答1:


I think you need to type this into a Terminal window, or put it in a script:

osascript -e 'tell application "Terminal" to do script "/bin/date"'

Change /bin/date to your Java thing.



来源:https://stackoverflow.com/questions/27866749/opening-a-terminal-with-a-terminal-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!