How to install script

r3flex

Member
Jun 21, 2016
33
0
38
Yes I have read that guide but now my question is following, how do I create run.sh so it can work, well I ve created one but it doesnt work.
 

Alligatoras

Administrator
Mar 31, 2016
2,570
12
2,857
381
Yes I have read that guide but now my question is following, how do I create run.sh so it can work, well I ve created one but it doesnt work.
This is very easy my friend :)
Just follow the steps bellow:
1) Open your SSH Client and connect as root!
2) Go to the path where you have installed the bot folders (px: cd /opt/sprummlbot - Default Path)
3) Type this command in the console: nano run.sh (This will open a new file named run.sh)
4) Type the content bellow in the empty file:
Code:
#! /bin/bash

while true
do
  java -jar Sprummlbot.jar
  echo "Sleeping 3 seconds"
  sleep 3
done
5) Ctrl+O (Save)
6) Enter (Confirn save)
7) Ctrl+X (Exit saved File)
8) Type this command in the console: chmod +x run.sh (Make the file runnable)
9) Type this command in the console: screen ./run.sh (Run the bot in a new screen)
 
Top