Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

Talk:Grabserial

From eLinux.org
Revision as of 22:55, 19 January 2012 by Mysli (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

quick and dirty

If you just need a timestamp and the input in one line, you can use the default UNIX tools like this:

 cat /dev/ttyUSB0 | awk '{ print strftime("%Y-%m-%d %H:%M:%S"), $0; }'

--Mysli 22:55, 19 January 2012 (UTC)