Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 48ea3cc31c
Fetching contributors…

Cannot retrieve contributors at this time

executable file 14 lines (10 sloc) 0.149 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash

cmd="$*"

pgrep -u "$(id -u)" -xf "$cmd" >/dev/null 2>&1

if [ "$?" != "0" ]
then
nohup $cmd >/dev/null 2>&1 &
else
exit 1
fi

exit 0
Something went wrong with that request. Please try again.