HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: PIPE cmd failure
Operating System - OpenVMS
        1839839
        Members
    
    
        1626
        Online
    
    
        110156
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
	
		
			
            
                
            Go to solution
        
            
		
		
			
            	
	
		
        
		
	
	
		Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 10:20 AM
08-09-2004 10:20 AM
			
				
					
					
						Can someone tell me why the following fails:
$ PIPE SHOW SYSTEM | -
( SEARCH SYS$INPUT "ROP___ROP5" ; -
READ SYS$INPUT X ; -
DEFINE/JOB ROP_INFO &X )
0000E809 ROP___ROP5 LEF 6 127308 0 00:01:10.45 719 1047
%RMS-E-EOF, end of file detected
The output shows that the SEARCH cmd is
successful, but the READ cmd is failing.
I've tried substituing SYS$PIPE for SYS$INPUT
with the same results.
TIA
					
				
			
			
				
			
			
				
	
			
				
		
			
			
			
			
			
			
		
		
		
	
	
	
$ PIPE SHOW SYSTEM | -
( SEARCH SYS$INPUT "ROP___ROP5" ; -
READ SYS$INPUT X ; -
DEFINE/JOB ROP_INFO &X )
0000E809 ROP___ROP5 LEF 6 127308 0 00:01:10.45 719 1047
%RMS-E-EOF, end of file detected
The output shows that the SEARCH cmd is
successful, but the READ cmd is failing.
I've tried substituing SYS$PIPE for SYS$INPUT
with the same results.
TIA
Solved! Go to Solution.
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 01:44 PM
08-09-2004 01:44 PM
Solution
			
				
					
					
						Jack,
I prefer to see "SYS$PIPE" to make commands clearer, but that's not your problem. The trouble is SEARCH and READ are in the same pipeline, so SEARCH will exhaust the input stream and READ will see EOF (exactly as reported).
I think what you really mean is for the READ to see the output of the SEARCH, so the command should be:
$ PIPE SHOW SYSTEM | -
SEARCH SYS$PIPE "ROP___ROP5" | -
( READ SYS$PIPE X ; -
DEFINE/JOB ROP_INFO &X )
					
				
			
			
				
		
		
	
	
	
I prefer to see "SYS$PIPE" to make commands clearer, but that's not your problem. The trouble is SEARCH and READ are in the same pipeline, so SEARCH will exhaust the input stream and READ will see EOF (exactly as reported).
I think what you really mean is for the READ to see the output of the SEARCH, so the command should be:
$ PIPE SHOW SYSTEM | -
SEARCH SYS$PIPE "ROP___ROP5" | -
( READ SYS$PIPE X ; -
DEFINE/JOB ROP_INFO &X )
	A crucible of informative mistakes
			
			
				
			
			
			
			
			
			
		- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 06:54 PM
08-09-2004 06:54 PM
			
				
					
						
							Re: PIPE cmd failure
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						As John posted, search consume all input stream and read receive eof.
$ PIPE SHOW SYSTEM | SEARCH SYS$INPUT "ROP__ROP5" | (READ SYS$INPUT X ; DEFINE/JOB ROP_INFO &X )
works fine for me.
 
Antonio Vigliotti
					
				
			
			
				
		
		
	
	
	
$ PIPE SHOW SYSTEM | SEARCH SYS$INPUT "ROP__ROP5" | (READ SYS$INPUT X ; DEFINE/JOB ROP_INFO &X )
works fine for me.
Antonio Vigliotti
	Antonio Maria Vigliotti
			
			
				
			
			
			
			
			
			
		- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 11:38 PM
08-09-2004 11:38 PM
			
				
					
						
							Re: PIPE cmd failure
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Jack,
....and as far I know, this behavior is excactly the same as it would have been on any *IX system: once you HAVE read a pipe, there is nothing there anymore until some new info is sent, but NO info will be available for processing twice! If you need it twice, just present it again to another data stream. (might just be another pipe, as in the above).
Jan
		
		
	
	
	
....and as far I know, this behavior is excactly the same as it would have been on any *IX system: once you HAVE read a pipe, there is nothing there anymore until some new info is sent, but NO info will be available for processing twice! If you need it twice, just present it again to another data stream. (might just be another pipe, as in the above).
Jan
	Don't rust yours pelled jacker to fine doll missed aches.
			
			
				
			
			
			
			
			
			
		The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP