使用终端打开终端-Mac [英] Opening a terminal with a terminal - Mac

查看:108
本文介绍了使用终端打开终端-Mac的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只需要在终端中打开一个新终端,然后能够识别该终端,然后在该终端中运行一些Java代码的命令.

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.

推荐答案

我认为您需要在终端"窗口中键入此内容,或将其放入脚本中:

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"'

/bin/date更改为您的Java内容.

Change /bin/date to your Java thing.

这篇关于使用终端打开终端-Mac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆