xenocara/app/xlockmore/etc/xlock1.sh
2006-11-26 11:07:42 +00:00

13 lines
261 B
Bash

#!/bin/sh
#
# My lil' wrapper routine to execute a program, but only if it's
# not already running
# Sometimes xlock crashes when xautlock calls xlock when already running.
#
PROG=xlock
TST=`ps aux | grep $PROG | grep -v grep`
if [ -z "$TST" ]; then
$PROG
fi