Execute o php no background

1

Eu conecto a um servidor dedicado com SSH. Em seguida, estou tentando executar em php -d max_execution_time [= 0] -f index.php. Como posso fechar (mesmo desligar) minha máquina local, mas meu script php no servidor remoto deve continuar funcionando?

    
por Molfar 15.12.2010 / 15:34

3 respostas

4

Ou na tela link

screen -A -m -d -S whatever ./yourphpscriptlauncher.sh

O legal +, com:

screen -r whatever

Você está novamente no seu script;)

    
por 15.12.2010 / 15:44
1

Execute seu script php assim: ssh user@machine "nohup php -d max_execution_time[=0] -f index.php &"

    
por 15.12.2010 / 15:39
0

Existem algumas formas listadas aqui:

link

    
por 15.12.2010 / 15:37