The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
pipe broken abir2 UNIX and Linux Applications 1 12-26-2007 11:40 PM
pipe broken abir2 Linux 2 12-26-2007 08:48 PM
Broken Pipe ramkrix UNIX for Dummies Questions & Answers 3 12-09-2007 12:27 PM
broken pipe eloquent99 UNIX for Dummies Questions & Answers 3 03-11-2003 10:18 PM
broken pipe? gusla UNIX for Dummies Questions & Answers 3 05-12-2002 02:05 AM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-08-2007
Registered User
 

Join Date: Dec 2007
Location: TamilNadu,INDIA
Posts: 46
Broken Pipe

Hi
I tried to open the man page of sh and piped to `pg`. Normally while reading a file page by page using `pg`, if we wanna quit at the middle of file, we give "q" near the colon mode.

Ex1: $cat file1 | pg
hi
how
r
u
:
(page1) now press "return key", it will go to next page
yes
i
am
fine
: q
(I wanna quit here and I gave q and its quit from the process normally)
$


The above mentioned condition is normal

My case is:

$ man sh | pg
User Commands sh(1)



NAME
sh, jsh - standard and job control shell and command inter-
preter

SYNOPSIS
/usr/bin/sh [-acefhiknprstuvx] [argument...]

--------- goes on

: q
(now if i give q here, its showing error "BROKEN PIPE")

why in normal case mentioned in example 1 its not happening, while in man sh|pg its happening (broken pipe)?

Please help me on this with clear explanation?
Forum Sponsor
  #2 (permalink)  
Old 12-08-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,422
Please do not double post. Thanks.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:43 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0