Oracle FAQ Your Portal to the Oracle Knowledge Grid

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

RE: unix question: KSH pipes

From: Philip West <>
Date: Fri, 9 Jun 2000 10:13:34 +0100
Message-Id: <>

why not sar -w | head -4|tail -1

Phil West - Impex IT ltd
Unix Sys Admin and Oracle Financials DBA Services

[ all opinions, unless otherwise stated, are personal and subject to change without reason or warning ! ]

-----Original Message-----

From: Steve Adams [] Sent: Friday, June 09, 2000 9:04 AM
To: Multiple recipients of list ORACLE-L Subject: RE: unix question: KSH pipes

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.

Steve Adams

-----Original Message-----
From: Chuck Hamilton [] 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...

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 >>
Author: Steve Adams

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message to: (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). ******************************************************************************* The information in this Internet e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this Internet e-mail by anyone else is unauthorised and any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this Internet e-mail are subject to the terms and conditions expressed in any applicable documentation or market practices governing the relationship between Garban Intercapital plc and its clients. Any views expressed in this message are those of the individual sender except where they are stated to be the views of Garban Intercapital plc. *******************************************************************************
Received on Fri Jun 09 2000 - 04:13:34 CDT

Original text of this message