[Pedido] Ligar/Desligar o servidor samp via PHP
#4

Vocк poderia usar o GMX para isto, mas um script em bash pode resolver o problema.

Код:
#!/bin/sh
 
while true; 
	do
        p_wc=`ps ax | grep samp03svr | grep -v grep| wc -l`
        if [ $p_wc -eq 0 ]; then
                ./samp03svr &
                fi
        sleep 15
done
Reply


Messages In This Thread
Ligar/Desligar o servidor samp via PHP - by AdrianoStk - 17.06.2018, 22:58
Re: Ligar/Desligar o servidor samp via PHP - by connork - 18.06.2018, 01:25
Re: Ligar/Desligar o servidor samp via PHP - by AdrianoStk - 18.06.2018, 03:23
Re: Ligar/Desligar o servidor samp via PHP - by connork - 18.06.2018, 03:30

Forum Jump:


Users browsing this thread: 1 Guest(s)