Amir Tahvildaran on 19 Jul 2012 10:46:35 -0700
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
[PLUG] php pipe to less broken?
|
- From: Amir Tahvildaran <amir@mathforum.org>
- To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
- Subject: [PLUG] php pipe to less broken?
- Date: Thu, 19 Jul 2012 13:46:29 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=SOwbfgjrpHxaGa3ufVYt6KWFdmK/dT24p8Mn8a8FeXU=; b=TVzgip6B4wTvegYmZ6HtKfWzkviS4e9B/JVYMzsRmakv7N5DaLr1mJDwOPKvfMZdaW Zy2TUpUGG3tOy3RsLvycVE/WsJHf8DrXKSGPMbC5UIHKtvKFd77SeqKhXXFSG9k22Z4c 3c4zxTBpczspbCiBQSILxkNfrYdbcfcGrkbH/4f6K+bYjTxAJkgZOha65jVKgSzXHVtt zzO31fop8ig1L3DCU8VC8Djwnhncf1owy0IwoxHExDeXedGdyZjKwF19UzYpWdjeiquf MXi1VUKpy/V+je3UE3yUGCcymR1pDxGtZ5s0jav63oHH8p7H0oCCRwkdf8PSwvv+3Zqc yF4Q==
- Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
- Sender: plug-bounces@lists.phillylinux.org
Not sure what's going on here. On a CentOS 6.2 vm when I pipe php output to less I wind up in some weird mode where "j" and "k" don't move up and down, instead they just queue up at this colon prompt.
:jkjk
If I hit enter after it sort of goes up/down by a line. If I hit gg or G and then enter I get to the top or bottom of the file. Similarly 'q<enter>' get's me out of it.
Is anyone familiar with this mode of less? Same thing happens for more. Same thing happens if I throw tee in the middle (and I can less the tee'd file normally afterwards too).
It seems to only be for PHP output, if I cat a file to less it works as expected. If I write a bash script it also works as expected. I tried getting php to exit(0) or exit(1). The php script runs and exits as normal (AFAIK) without the pipe.
Any thoughts?
-Amir
$ php -version
PHP 5.3.3 (cli) (built: Jul 3 2012 16:40:30)
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug