🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #261

Re: Sort problem . .

#261
From: Michael Lemke
Date: Sun, 02 Aug 1992 15:36
31 lines
1840 bytes
In article <aldavi01.712736852@starbase.spd.louisville.edu> aldavi01@starbase.spd.louisville.edu (Arlie Davis) writes:
>In <1992Aug2.050145.7158@chpc.utexas.edu> aswx266@chpc.utexas.edu (Michael Lemke) writes:
>[source editting for correcting nasty output programs deleted]
>
>> No.  You hacked ps.  What about w, finger...?  Once you got the wrapper 
>> you got them all.  You might even got how to attack those which spit out
>> two header lines....
>
>Quite often, you *can't* hack the source, especially with ps, w, xload, and
>anything that must have root setuid privileges.  Also, if you can't get
>the source for the particular program in question, due to political reasons,
>or just plain availability, then you're still stuck.
>
>> >No functionality is lost, some
>> >is added. 
>>
>> Maybe not.  Don't know if ps returns a useful exit status but if it does
>> this will break:   ps -some_option >/dev/null || echo 'Warning....'
>
>I don't see how tweaking output would break the output status.


If you write the header to stderr as the other poster suggested who
wanted to modify ps, the above conctruction would leave stuff on the
screen.  So it breaks the >/dev/null construct.


-- 
Michael Lemke
Astronomy, UT Austin, Texas
(michael@io.as.utexas.edu or UTSPAN::UTADNX::IO::MICHAEL [SPAN])
Technical Details
Message-ID: <1992Aug2.153600.1893@chpc.utexas.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!cs.utexas.edu!hermes.chpc.utexas.edu!aswx266
References: <rsqmjvp.messina@netcom.com> <1992Aug2.050145.7158@chpc.utexas.edu> <aldavi01.712736852@starbase.spd.louisville.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!cs.utexas.edu!hermes.chpc.utexas.edu!aswx266
From: aswx266@chpc.utexas.edu (Michael Lemke)
Newsgroups: comp.unix.shell
Subject: Re: Sort problem . .
Message-ID: <1992Aug2.153600.1893@chpc.utexas.edu>
Date: 2 Aug 92 15:36:00 GMT
Article-I.D.: chpc.1992Aug2.153600.1893
References: <rsqmjvp.messina@netcom.com> <1992Aug2.050145.7158@chpc.utexas.edu> <aldavi01.712736852@starbase.spd.louisville.edu>
Organization: The University of Texas System - CHPC
Lines: 31