[NEED] Samp anti-crasher for linux (centos)
#6

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
Код:
#!/bin/bash
export GTA_PATH=/home/sampsvr
cd $GTA_PATH
while [ true ]; do
cat {$GTA_PATH}/server_log.txt >> {$GTA_PATH}/full_server_log.txt
rm {$GTA_PATH}/server_log.txt
touch {$GTA_PATH}/server_log.txt
./samp03svr
done
Works pretty well to me.
I try it:

1є create an archive called (in my case) zodiak.sh with your code (i modified the path) and put it at my server folder (/root/pnk)
2є stop server
3є type :
Код:
cd pnk
nohup ./zodiak.sh &
Give me that error:
Код:
nohup: cannot run command `./zodiak.sh': Permission denied
So I give permision 777 on zodiak.sh

I've try again and give me this error:
Код:
nohup: cannot run command `./zodiak.sh': No such file or directory
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)