EOSERV Forum > Game Development > PHP: Waiting for a shell_exec command? (Linux)
Page: << 1 >>
PHP: Waiting for a shell_exec command? (Linux)
Author Message
Post #202282 PHP: Waiting for a shell_exec command? (Linux)

As the title says, I'm using shell_exec to call a command on my server but for some reason it's like php is waiting for the command to end when it shouldn't be? When the command is run through a command line it works perfect, but the php page just says loading?The command I'm calling is a basic "service xxx start" which runs a process in the background.

edit: forgot to mention I have tried using   /dev/null 2>&1 & disown. Nothing seems to work.. That's why I was thinking it's a PHP thing?

---
https://Havenshost.net/ - Cheap Windows VPS
2 years, 8 weeks ago
Post #202301 Re: PHP: Waiting for a shell_exec command? (Linux)

uhmmmmmmm try I think it was

nohup [yourcommand] > /dev/null 2>&1 &
---
I not hacker

“Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its
whole life believing that it is stupid.” - Albert Einstein : Really Great Quote Ramy!
2 years, 7 weeks ago
Page: << 1 >>

EOSERV Forum > Game Development > PHP: Waiting for a shell_exec command? (Linux)