|
I'm pulling control data off of a radio with a usb interface and I'd like to timestamp the entries coming off the minicom program.
Data flow from minicom:
MOT,30B,1,261C MOT,3C0,0,52C0 MOT,3C0,0,308F MOT,32B,1,232E MOT,2A9,0,2A70 MOT,3C0,0,52C0 MOT,3C0,0,308F MOT,32B,1,232E MOT,2A9,0,2A70 MOT,3C0,0,52C0
desired output:
09/07/10 14:28:03 MOT,30B,1,261C 09/07/10 14:28:03 MOT,3C0,0,52C0 09/07/10 14:28:04 MOT,3C0,0,308F 09/07/10 14:28:04 MOT,32B,1,232E 09/07/10 14:28:05 MOT,2A9,0,2A70 09/07/10 14:28:06 MOT,3C0,0,52C0 09/07/10 14:28:06 MOT,3C0,0,308F 09/07/10 14:28:06 MOT,32B,1,232E 09/07/10 14:28:07 MOT,2A9,0,2A70 09/07/10 14:28:09 MOT,3C0,0,52C0
how do I intercept the output and insert the date and time?
Thanks all !!!
|