I have one file test.php, I want to run this file in backgroun in ubuntu server, I need command for that so i can do that process with putty, If i will close putty, then also it should have to run from background,Can anyone please help me for that ?
Asked
Active
Viewed 228 times
-1
-
Possible duplicate of [Keep play application running after putty terminal closed](https://stackoverflow.com/questions/27365021/keep-play-application-running-after-putty-terminal-closed) – Martin Prikryl Jan 21 '19 at 10:11
1 Answers
0
try to run with & at the end
php script.php &
it will launch script in background

Jaresh
- 1
-
If i will shutdown my laptop then still it will work in background ? – Nikul Panchal Jan 21 '19 at 09:50
-
Yes, it will be run as process in backgroud. You must kill process to stop script. – Jaresh Jan 21 '19 at 10:06