Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


serial_data_logger

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
serial_data_logger [2014/07/07 11:29] – [rsync / init script] adminserial_data_logger [2014/07/07 11:30] admin
Line 79: Line 79:
   }   }
 }</code> }</code>
 +  * Start logging after boot. Add to **/etc/rc.local**: <code>echo "nohup /usr/local/bin/serialWatch.exp ttyUSB0 | rotatelogs -f /mnt/ram/p1data 86400 100M &" | at now+1min</code>
 +
 =====rsync / init script===== =====rsync / init script=====
 You can use the following script to sync the RAM disk to NAS. It wil also sync before shutdown. This has been tested on Raspbian (Raspberry PI) Debian. You can use the following script to sync the RAM disk to NAS. It wil also sync before shutdown. This has been tested on Raspbian (Raspberry PI) Debian.
serial_data_logger.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1