• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux CMD: Screen

jaszewski

New Member
Joined
Mar 12, 2009
Messages
32
Reaction score
0
Location
Poland
Hi

When i want to type:

screen ./theforgottenserver

Ive got a error:

Couldnt exec '.....' Premission Denied

Why? Im loggin as root.
 
777 means everything is readable / writeable / executable 775 means its not writeable by the public and 755 means its not writeable by groups only the owner which you are if your root, someone please correct me if I'm wrong.

Its all up to you but 755 should be enough to run your server I know it is for me.
 
I can give you my configuration:
start.sh
Code:
echo Starting The Forgotten Server....
sleep 0
screen -A -m -d -S tfs ./start-tfs

start-tfs
Code:
#! /bin/bash
cd /home/ots
ulimit -c unlimited
i=1
while [ $i -le 99999000 ]
do
./theforgottenserver > ./data/output.txt
i=`expr $i + 1`
done

Explanation:
  • This is provided with auto restarter (it will start up after '/shutdown 0').
  • It dumps core (bug report, every instance), disable by removing 3rd line of start-tfs.
  • start-tfs <- auto restarter script
  • 99999000 <- number of times to restart TFS
  • theforgottenserver <- binary of TFS
  • ./data/output.txt <- console log

How to use:
  1. to run: ./start.sh
  2. to restart: killall theforgottenserver
  3. to stop: screen -r tfs and CTRL + C

Maybe I will write a tutorial later :)
Write if it's helpful.
 
Last edited:
When i want to change CHMODs

admin@ks365267:/home/no-pvp$ chmod +x theforgottenserver
chmod: changing permissions of `theforgottenserver': Operation not permitted

EDIT:

In Filezilla when i connect to FTP, owner and group of this folder is root - how can i change this? Maybe there is something wrong.

root.png



EDIT: I can change chmods only as root.
 
Last edited:
Back
Top