从脚本启动图形界面程序

Ubuntu上如果从脚本启动图形界面程序,会有一个终端窗口始终开启,如果在脚本里用nohup启动,就可以关闭这个窗口了,例如下面的脚本演示了启动eclipse程序:

export PATH=$PATH:/opt/jre1.6.0_14/bin

nohup /opt/eclipse/eclipse 1>/dev/null 2>/dev/null

参考: http://askubuntu.com/questions/10547/how-to-clean-launch-a-gui-app-via-the-terminal-so-it-doesnt-wait-for-terminati

posted on 2014-03-17 18:15  leechau  阅读(140)  评论(0编辑  收藏  举报

导航