check program is already running before launch it
For example I want to start gedit, but i want to check whether it is running already
pidof gedit > /dev/null || gedit &
想飞之心,永远不死!
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