cat command with timeout

cat command with timeout

Dan Bar Dov bardov at gmail.com
Sun Jun 20 09:03:49 IDT 2010


Years ago I needed a cat with a timeout argument.
I modified the cat code. It was very easy (if I remember correctly less than
one hour of work).

Sadly, I don't have the code.

Good luck.
Dan

2010/6/10 Ori Idan <ori at helicontech.co.il>

> I have to read lines from serial port, I thought to read them using 'cat'
> however, since the other unit connected to the serial port, might
> malfunction and not send anything, I need a timeout to stop reading after
> few seconds.
> Does someone know of an alternative to cat with timeout?
>
> --
> Ori Idan
>
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20100620/f6699f7c/attachment.html>


More information about the Linux-il mailing list