gpt4 book ai didi

notepad++ - 如何从 Wine 执行 linux bash 命令

转载 作者:行者123 更新时间:2023-12-05 08:01:18 30 4
gpt4 key购买 nike

我正在使用带有插件 NPPExec 的 Notepad++ 在 MS windows 上运行 Perl 脚本。

喜欢:

cmd/c perl script.pl arg1 arg2

是否可以在 Linux 上使用 wine 调用 native Perl 解释器来执行相同的操作。

我尝试了以下链接,它似乎只适用于 GUI 应用程序。

7.5 How do I associate a native program with a file type in Wine?

对于命令行输出(控制台输出),我遇到以下错误喜欢:

fixme:shell:IShellBrowser_fnOnViewWindowActive stub, 0x1387b8 (0x155a78)
fixme:exec:SHELL_execute flags ignored: 0x0000000c

有解决办法吗?

最佳答案

这应该通过将命令设置为 start/unix/usr/bin/perl winepath arg1

来实现

如果您有更复杂的参数,最好创建一个 bash 脚本并使用所有参数调用它并在那里进行解析。

(我知道这个问题很老了,对我来说还是个问题)

关于notepad++ - 如何从 Wine 执行 linux bash 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14454973/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com