hehachris Posted January 12, 2007 Share Posted January 12, 2007 I use shell_exec to execute a mongrel command:[code]shell_exec('mongrel_rails -c /path -d');[/code]The command is executed correctly, b the script keeps hanging and doesnt want to continue.I have tried putting '>/dev/null 2>&1' or '2>&1' at th end of the command with no luck.Any advise would be appreciated. Link to comment https://forums.phpfreaks.com/topic/33893-php-shell_exec-hanging/ Share on other sites More sharing options...
effigy Posted January 12, 2007 Share Posted January 12, 2007 What happens when you run this at the command line? Link to comment https://forums.phpfreaks.com/topic/33893-php-shell_exec-hanging/#findComment-159093 Share on other sites More sharing options...
hehachris Posted January 13, 2007 Author Share Posted January 13, 2007 nth happenI can continue to type other commandSo i believe that the command is exited with signal. Link to comment https://forums.phpfreaks.com/topic/33893-php-shell_exec-hanging/#findComment-159888 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.