SA-MP Forums Archive
Anticrasher Linux - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Anticrasher Linux (/showthread.php?tid=294378)



Anticrasher Linux - Mati_IBV - 01.11.2011

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!


Respuesta: Anticrasher Linux - TiNcH010 - 01.11.2011

proba con 'nohup ./restart.sh' o sin .sh


Respuesta: Anticrasher Linux - Mati_IBV - 01.11.2011

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