Solved

Piped block input to C Shell script

Posted on 1997-07-11
1
252 Views
Last Modified: 2013-12-26
How can output, piped to a C Shell script be handled by the script as block input?
0
Comment
Question by:keyboards
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 1293973
Blocking is not done by the C-shell, but by the underlaying operating system.
The only way (I know) to force a C-shell to do a enless read loop
from stdin is

while(1)
      set i = `echo $<`
      # do your actions with  $i
      if ("$i" == "EndOfBlock") break
end

The program writing the output piped into this C-shell must send
a "EndOfBlock" string (any string allowed, must just be uniq to
the rest of the input data).
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 54
NotAlone Challenge 20 84
noX challenge 17 119
moto 4g phone enable finger print 4 8
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question