A
A
AlexSer2018-10-11 09:57:54
linux
AlexSer, 2018-10-11 09:57:54

How to run file execution in background on Ubuntu server?

Hello! There is an application on the Ubuntu Web Server. The socket server is also written in the socket.php file.
In the terminal I do manually
-> php socket.php
It runs.
Question: how to send a command from the application so that the server starts this file in the background - the socket server?
And it was also possible to stop the execution of the file through the application.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hanneman, 2018-10-11
@AlexSer

Through crontab, service, daemon, nohup. Or like php socket.php &. There are many options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question