add procStatus util method for avoid a script run concurrently