How to install script

r3flex

Member
Joined
Jun 21, 2016
Messages
33
Reaction score
0
Points
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.
 

r3flex

Member
Joined
Jun 21, 2016
Messages
33
Reaction score
0
Points
38
Nevermind already know how to do it
 

Alligatoras

Administrator
Joined
Mar 31, 2016
Messages
2,570
Solutions
12
Reaction score
2,857
Points
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)
 

r3flex

Member
Joined
Jun 21, 2016
Messages
33
Reaction score
0
Points
38
Thank you :) but I already figured that out.
 

Alligatoras

Administrator
Joined
Mar 31, 2016
Messages
2,570
Solutions
12
Reaction score
2,857
Points
381
Thank you :) but I already figured that out.
Well, probably i was creating my post when you said that you already know how to do that....but....anytime :)
 
Top