Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Simple logging program with database - example

By: a guest on Jul 14th, 2010  |  syntax: None  |  size: 0.59 KB  |  views: 72  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. storage0 ~ $ python logcli.py
  2. Log >> setmode USB
  3. Log >> setfreq 14.200
  4. Log >> log AE5NE 577 577
  5. Logged AE5NE at 2010-07-14 14:30:13 (577/577 on 14.200 using USB)
  6. Log >> log KI4JGT 599 599
  7. Logged KI4JGT at 2010-07-14 14:30:22 (599/599 on 14.200 using USB)
  8. Log >> report
  9. 2010-07-14 14:30:13     AE5NE   14.200  USB     577     577
  10. 2010-07-14 14:30:22     KI4JGT  14.200  USB     599     599
  11. Log >> exit
  12.  
  13. storage0 ~ $ python logcli.py
  14. Log >> report
  15. 2010-07-14 14:30:13     AE5NE   14.200  USB     577     577
  16. 2010-07-14 14:30:22     KI4JGT  14.200  USB     599     599
  17. Log >> exit
  18.  
  19. storage0 ~ $