blob: 19053ca639d361a16b2a51c5d0eb6d87c31b5bcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
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
|