I am using Raspberry Pi 2 to a telosB base station to collect data from other sensors. I receive (on the terminal) hex data and redirect these incoming data into a python script which will clean and upload to mysql.
Manually (steps i take to do the task:)
source ~/.bashrc
source ~/.tinyos.sh
java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB:telosb | python data-manager.py
I want the raspberry pi2 (running on Rasbian) to do these steps on boot immediately.
I have tried using the update-rc.d method and the crontab method both of which do not work. I think it is because of the arguments in my command that are not going through.
Thanks!