S
S
Snewer2016-09-06 11:59:45
linux
Snewer, 2016-09-06 11:59:45

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

2 answer(s)
D
DevMan, 2016-09-06
@Snewer

screen/tmux/etc
here is a screenshot - https://www.rackaid.com/blog/linux-screen-tutorial...

L
LightAir, 2016-09-06
@LightAir

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 question

Ask a Question

731 491 924 answers to any question