Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为了启动带参数的 gui 程序,我经常发现自己打开一个终端(在我的例子中是 urxvt):用 'nohup' 或 'disown' 启动相应的程序,然后退出终端。这使程序按需要运行,但不太舒服。我不使用任何像 tmux 或 screen 这样的多路复用器,这样可以规避这个问题。我希望能够启动一个终端,它会在发出一个命令后自动拒绝并退出。有什么想法可以实现吗?
提前致谢
There are more elegant ways of solving this problem, but here's a solution based on what you've described:
$ (xclock &); exit
Replace xclock with the GUI program you want to run.