cat /dev/your_serial_port > some_file &sleep Xkill $! Valery --- On Thu, 6/10/10, Ori Idan <o...@helicontech.co.il> wrote:
From: Ori Idan <o...@helicontech.co.il> Subject: cat command with timeout To: "IGLU Mailing list" <linux-il@cs.huji.ac.il> 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 Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
_______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il