[RndTbl] Ksh scripting, named pipes

Kevin McGregor kevin.a.mcgregor at gmail.com
Sat Mar 1 13:29:19 CST 2014


I tried fiddling with IFS to no avail. I just changed it like this:
IFS='
'
And now the readers show all kinds of gibberish! All lines have no
whitespace, save for the newline at the end. I'm assuming it's at the end.


On Sat, Mar 1, 2014 at 12:47 PM, Robert Keizer <robert at keizer.ca> wrote:

> Have you tried setting IFS ( field sep )? Also you could enable raw mode
> with -r.
>
> Can you share the script?
>
> Are the same lines failing repeatedly?
>
> Rob
> On 2014-03-01 11:55 AM, "Kevin McGregor" <kevin.a.mcgregor at gmail.com>
> wrote:
>
>> 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
>>
>> _______________________________________________
>> Roundtable mailing list
>> Roundtable at muug.mb.ca
>> http://www.muug.mb.ca/mailman/listinfo/roundtable
>>
>>
> _______________________________________________
> Roundtable mailing list
> Roundtable at muug.mb.ca
> http://www.muug.mb.ca/mailman/listinfo/roundtable
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.muug.mb.ca/pipermail/roundtable/attachments/20140301/d764cfe5/attachment.html>


More information about the Roundtable mailing list