禁止从 tcl 中的流程中调用的可执行文件打开的新窗口

发布于 2024-12-26 07:14:53 字数 372 浏览 2 评论 0原文

我正在 Linux 环境中运行用 tcl 编写的流程,该流程执行外部可执行文件。其中一个可执行文件在运行期间会创建新窗口,该窗口会弹出几秒钟,然后被销毁。这些窗口中提供的信息不是必需的,但它们很烦人并且干扰正常工作,而流程在后台运行。使用 exec 调用可执行文件:

set cmd "exec $KITE(SI_Exe)/run_SI_01_fast_touchstone.sh $KITE(MCRroot) $KITE(SI_config_file_name) "
puts "Running $cmd "
eval $cmd

有没有办法抑制这些窗口的弹出,类似于将程序的输出定向到 /dev/null

I'm running a flow written in tcl, in Linux environment, that executes external executable files. One of those executables creates new windows during its run that pop up for a few seconds and then are destroyed. The information provided in those windows isn't needed, but they are annoying and interfere with normal work, while the flow runs in the background. The executable is called using exec:

set cmd "exec $KITE(SI_Exe)/run_SI_01_fast_touchstone.sh $KITE(MCRroot) $KITE(SI_config_file_name) "
puts "Running $cmd "
eval $cmd

Is there a way to suppress the popping up of those windows, similar to the way you can direct output from a program to /dev/null?

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

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

发布评论

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

评论(1

吾家有女初长成 2025-01-02 07:14:53

如果您使用的是 Linux 系统,则意味着您很可能正在运行 X11。如果这是真的,并且它是一个足够现代的版本,您可以创建一个虚拟帧缓冲区(xvfb),然后设置环境变量 DISPLAY 以将其用于显示。这在道德上相当于 /dev/null。

If you are on a linux system, that means you are most likely running X11. If that's true, and it's a sufficiently modern version, you could create a virtual frame buffer (xvfb) and then set the environment variable DISPLAY to use that for the display. That is the moral equivalent to /dev/null.

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