Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- printenv
- unixtime="`date +%s`"
- /usr/bin/python /home/pi/ldr/ldr-adc.py &> /tmp/test.out
- light="`/usr/bin/python /home/pi/ldr/ldr-adc.py`"
- echo $? > /tmp/test2.out
- echo $light > /dev/shm/light.log
- echo $light
- mysql --host=192.168.1.2 --user=user --password=pass light -e"insert into light1 (time, light) values ('$unixtime', '$light')"
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement