cat /dev/your_serial_port > some_file &sleep Xkill $!
Valery
--- On Thu, 6/10/10, Ori Idan <[email protected]> wrote:

From: Ori Idan <[email protected]>
Subject: cat command with timeout
To: "IGLU Mailing list" <[email protected]>
Date: Thursday, June 10, 2010, 10:13 AM

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
 




-----Inline Attachment Follows-----

_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il



      
_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to