I'm not sure how I would do that, but I have an idea. (I'm not a complete noob!! LOL) I would take that code and put in a text. What do you think I should name the whole file? After I decide that how should I start it or make sure that I am using the correct commands? I bought this "Linux book for Dummies", but I think I should find a better one, which has more information about running a dedicated server. My book goes over all the different types of Linux OS that is available. It explains how to install applications as well, but it shows it using the GUI.
#!/bin/sh
PIDFILE=bnubot.pid
if [ -f $PIDFILE ] ; then
echo "it is still running"
else
echo "starting a new one"
java -jar BNUBot.jar -plugins net.bnubot.bot.html.HTMLOutputEventHandler > stdout.txt 2> stderr.txt &
pid=$!
echo $pid > $PIDFILE
fi
P.S. Blaze.....
I use google all the time and read and search when i'm confused or stuck. But I didn't come here for that root adduser problem. It was just brought up in conversation, so I thought what harm would it hurt to ask about it. I felt comfortable knowing that there were some knowledgable guys here and they seemed very helpful. My main point though... I always google before posting