Answer the question
In order to leave comments, you need to log in
How to run php script in background?
Hello!
There is some php script that outputs information to the console (echo construct).
How can I run this script via SSH in the background so that I can view this process at any time (what the script outputs)? Is it possible?
Thank you.
Answer the question
In order to leave comments, you need to log in
screen/tmux/etc
here is a screenshot - https://www.rackaid.com/blog/linux-screen-tutorial...
I would recommend Supervisord .
Pros:
Cons (well, these are not cons at all):
In the Supervisord
logs , you can see what the script outputs to the console, you can see the log of a specific process, incl. and through the web interface. In the case, it is better to rewrite the script for output at least to your log file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question