Caused by the readline module and cannot be avoided. >From http://php.net/manual/en/book.readline.php : When readline is enabled, php switches the terminal mode to accept line-buffered input. This means that the proper way to use the cli when you pipe to an interactive command is to explicitly specify that php is not using the terminal for input:
php somescript.php < /dev/null | less ** Changed in: php5 (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/907905 Title: php5-cli scripts not running in background, stays stopped. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/907905/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs