9 lines
148 B
Bash
Executable File
9 lines
148 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# Run program unless it's already running.
|
|
|
|
if [ -z "`ps -Af | grep -o -w ".*$1" | grep -v grep | grep -v run-once`" ]; then
|
|
$@
|
|
fi
|
|
|