summaryrefslogtreecommitdiff
path: root/app/xlockmore/etc/xlock1.sh
blob: c7b07c9b3e5a33fd4906dbc2bd7e68e4b6e94b7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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