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 Bugs, which is subscribed to 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-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs