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