Bug 21902

Summary: Unable to pipe into read
Product: [Retired] Red Hat Linux Reporter: Need Real Name <preston.newton>
Component: bashAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED DUPLICATE QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-12-07 19:31:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2000-12-07 19:30:58 UTC
I am currently try to write a shell script that will pipe the output into 
the read statement.  It is not working at all.  Example is
"snmpget 172.1.1.1 public interfaces.ifNumber.0 | awk '{print $3}' | read 
NUM"
It is not piping the output, which is a number, into the variable.

Comment 1 Karsten Hopp 2000-12-12 16:47:27 UTC
please have a look at Bugzilla #19747

*** This bug has been marked as a duplicate of 19747 ***