Ou na tela link
screen -A -m -d -S whatever ./yourphpscriptlauncher.sh
O legal +, com:
screen -r whatever
Você está novamente no seu script;)
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?
Ou na tela link
screen -A -m -d -S whatever ./yourphpscriptlauncher.sh
O legal +, com:
screen -r whatever
Você está novamente no seu script;)
Execute seu script php assim: ssh user@machine "nohup php -d max_execution_time[=0] -f index.php &"
Existem algumas formas listadas aqui:
Tags ssh linux dedicated-server