summaryrefslogtreecommitdiff
path: root/xmonad/single-startup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'xmonad/single-startup.sh')
-rwxr-xr-xxmonad/single-startup.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/xmonad/single-startup.sh b/xmonad/single-startup.sh
new file mode 100755
index 0000000..19053ca
--- /dev/null
+++ b/xmonad/single-startup.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+if pgrep -x $1
+then
+ echo "process $1 already running! bailing out..."
+else
+ #. /home/miguel/.bashrc
+ export NNTPSERVER="nntp.aioe.org" # we need this for slrn (can not source from .bashrc?)
+ #echo server = $NNTPSERVER
+ echo "start process $1 ..."
+ eval $1
+fi
+