Bash trick – dont run script/program if its running (without using pid lock files)
This can be achieved with pid files. Example: http://candrews.integralblue.com/2009/02/one-instance-at-a-time-with-pid-file-in-bash/ Another clever way is to look thru the processes list (if your allowed to look thru all user – if not then either wayRead More…