12 lines
109 B
Bash
12 lines
109 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
run() {
|
||
|
if ! pgrep -f "$1" ;
|
||
|
then
|
||
|
"$@"&
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
# Usage:
|
||
|
# run "program [some arguments]"
|