Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: unix question: KSH pipes

RE: unix question: KSH pipes

From: Steve Adams <steve.adams_at_ixora.com.au>
Date: Fri, 9 Jun 2000 14:58:40 +1000
Message-Id: <10522.108346@fatcity.com>


Hi Chuck,

The two that work shouldn't. I suggest you split the output to a temporary file using tee, and use that file as the input to the tail command.

Regards,
Steve Adams

http://www.ixora.com.au/
http://www.oreilly.com/catalog/orinternals/
http://www.christianity.net.au/



-----Original Message-----
From: Chuck Hamilton [SMTP:chuck_hamilton_at_yahoo.com] Sent: Friday, June 09, 2000 3:03 AM To: Multiple recipients of list ORACLE-L Subject: unix question: KSH pipes

I have three SGI servers running the exact same version of IRIX (6.5.5 64 bit). I have a pipeline that works fine on two of them but not on the third. Here's the pipeline...

sar -w | (head -n 4 ; tail)

It prints the first 4 lines followed by the last 10 lines of the sar output on two machines. On the third it just prints the first 4 lines. Does anyone have any idea why? Is there an environment variable or set command I need to execute to make it work as it does on the other 2 machines?



Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints! << File: ATT00067.htm >> Received on Thu Jun 08 2000 - 23:58:40 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US