Anticrasher Linux
#1

Hola, Necesito un anticrasher para linux, utilize cada uno de estos

https://sampwiki.blast.hk/wiki/Linux_Server

el mas efectivo ( Segun lo dice )

es este

Restar.sh

pawn Код:
#!/bin/sh
log=samp.log
dat=`date`
samp="/path/to/samp/server/samp03svr"
cd /path/to/samp/server
 
echo "${dat} watchdog script starting." >>${log}
while true; do
        echo "${dat} Server exited, restarting..." >>${log}
        mv /path/to/samp/server/server_log.txt /path/to/samp/server/logs/server_log.`date '+%m%d%y%H%M%S'`
        ${samp} >> $log
    sleep 2
done
pero en la consola me aparece un error de

"nohup: cannot run command `./restart.sh': No such file or directory"

Alguien save repararlo? o tienen otro mejor ? porfavor necesito uno urgente, Gracias!
Reply
#2

proba con 'nohup ./restart.sh' o sin .sh
Reply
#3

Quote:
Originally Posted by TiNcH010
Посмотреть сообщение
proba con 'nohup ./restart.sh' o sin .sh
Ya ise eso
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)