16.11.2010, 14:22
Quote:
Код:
#!/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 |
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 &
Код:
nohup: cannot run command `./zodiak.sh': Permission denied
I've try again and give me this error:
Код:
nohup: cannot run command `./zodiak.sh': No such file or directory