This question shows how to run a persistent PHP script. However, is there a way to also write the output to a text file? I've tried running nohup php hello_world.php & > &1 > output.txt, but I get syntax error near unexpected token '&'. If I remove the &, the output is logged, but the script only runs once. Thanks.
Asked
Active
Viewed 66 times
0
Community
- 1
- 1
Impossibility
- 954
- 7
- 20