cat command with timeout

cat command with timeout

Ori Idan ori at helicontech.co.il
Thu Jun 10 10:13:46 IDT 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20100610/ed9466a8/attachment.html>


More information about the Linux-il mailing list