[RndTbl] Ksh scripting, named pipes

Kevin McGregor kevin.a.mcgregor at gmail.com
Sat Mar 1 11:54:33 CST 2014


I have a main script which writes to a named pipe. Before it starts
writing, it starts two other scripts which read from this pipe. The reading
and writing is a list of file names, one per line. How do I ensure that
each script reads one complete line from the pipe at a time (no more, no
less)?

I have a test set up, and it usually works, but sometimes a reader will get
a blank line or just a "/" (but not any other part of a line)!

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.muug.mb.ca/pipermail/roundtable/attachments/20140301/15927eed/attachment.html>


More information about the Roundtable mailing list