寻找同等命令的macOS:konsole -e docker -compose''

发布于 2025-01-25 10:33:58 字数 395 浏览 4 评论 0原文

有人知道以下命令应该是什么MacOS等效的?

konsole -e "docker-compose up"

该命令在Fedora中起作用,但我找不到在MacOS中运行它的方法。我尝试安装Konsole,但是使用此方法安装它( https://ports.macports .org/port/konsole/)似乎不起作用。 Konsole不会安装。

我还尝试了:打开-n -a终端,但是此方法无法提供传递命令并在新终端窗口中执行的方法。

谢谢

Anyone knows what should be the MacOS equivalent for the following command ?

konsole -e "docker-compose up"

the command works in Fedora, but I cannot find a way to run it in MacOS. I've tried to install konsole, but after installing it using this method (https://ports.macports.org/port/konsole/) it doesn't seem to work. konsole doesn't get installed.

I've also tried : open -n -a Terminal but this approach doesn't offer a way to pass a command and execute it in the new Terminal window.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽清梦 2025-02-01 10:33:58

您可以测试以下内容:

#!/usr/bin/env bash
run-command(){
    local tmp=$(mktemp) 
    echo 

如果一切都很好,那么

run-command docker-compose up
#!/bin/bash\n'"rm $tmp; cd ${PWD@Q}; clear; ${@@Q}" > $tmp chmod 755 $tmp ; open -a Terminal $tmp } run-command sleep 5

如果一切都很好,那么

You can test this :

#!/usr/bin/env bash
run-command(){
    local tmp=$(mktemp) 
    echo 

If everything is fine, then

run-command docker-compose up
#!/bin/bash\n'"rm $tmp; cd ${PWD@Q}; clear; ${@@Q}" > $tmp chmod 755 $tmp ; open -a Terminal $tmp } run-command sleep 5

If everything is fine, then

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文