aboutsummaryrefslogtreecommitdiffstats
path: root/bin/run_once
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2013-11-03 12:30:45 +0100
committerDavid Runge <david.runge@frqrec.com>2013-11-03 12:30:45 +0100
commit67b0ec5741d327d27afe88783d85fcf2c4c4f204 (patch)
tree4ea47807c5e775927b96eb79933c09fbfcd0468e /bin/run_once
downloaddotfiles-67b0ec5741d327d27afe88783d85fcf2c4c4f204.tar.gz
dotfiles-67b0ec5741d327d27afe88783d85fcf2c4c4f204.tar.bz2
dotfiles-67b0ec5741d327d27afe88783d85fcf2c4c4f204.tar.xz
dotfiles-67b0ec5741d327d27afe88783d85fcf2c4c4f204.zip
First commit
Diffstat (limited to 'bin/run_once')
-rwxr-xr-xbin/run_once4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/run_once b/bin/run_once
new file mode 100755
index 0000000..3829f7e
--- /dev/null
+++ b/bin/run_once
@@ -0,0 +1,4 @@
+#!/bin/bash
+#Alternative
+pgrep $@ > /dev/null || ($@ &)
+