check program is already running before launch it

9 八月, 2006 (15:16) | linux

For example I want to start gedit, but i want to check whether it is running already

pidof gedit > /dev/null || gedit &

Write a comment





提示:如果你刚刚提交过评论,但是还没有被显示出来,请点击这里刷新一下: 刷新评论