Bug#2548: psutils cannot read from pipe
Package: psutils
Version: 1.16-1
The new version of psutils in the development area cannot work on a
file piped into the utilities. Working on a regular file works
fine. Previous versions of psutils didn't have problems working as
part of a pipeline.
A quick glance a the source code suggests that the utilities should
notice when they get used in a pipeline and copy their input to a
temporary file. Unfortunately, I don't have enough time right now to
try to locate the problem.
Here is the output to demonstrate the problem (run under bash):
> cat af.ps | psnup -2 -pletter >/dev/null
psnup: I/O error seeking page 0
> psnup -2 -pletter <af.ps >/dev/null
[1] Wrote 1 pages, 26464 bytes
I am running the development version of debian 1.1, updated
regularly. A partial list of installed packages follows. The kernel is
a customized version compiled from the sources indicated below ---
only those drivers are selected which I need for my hardware, no
modules.
Desired=Unknown/Install/Remove/Purge
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-===============-==============-============================================
ii bash 1.14.6-3 The GNU Bourne-Again SHell.
ii image 1.3.64-0 Linux kernel binary image.
ii libc4 4.6.27-11 The Linux C library (a.out version 4).
ii libc5 5.2.18-1 The Linux C library version 5 (run-time libr
ii libc5-dev 5.2.18-1 The Linux C library version 5 (development f
ii source 1.3.64-0 Linux kernel source.
Cheers,
Lukas
-------------------------------------------------------------------------------
Dr. Lukas Nellen | Email: lukas@teorica0.ifisicacu.unam.mx
Depto. de Fisica Teorica, IFUNAM |
Apdo. Postal 20-364 | Tel.: +52 5 622 5014 ext. 218
01000 Mexico D.F., MEXICO | Fax: +52 5 622 5015
Reply to: