Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # print pi per day of uptime of my raspberrypi
- # runs as cron job @daily / 0 0 * * *
- # dependencies bc, pi
- # copyright (c) 2013 @naesk
- uptimeDays=`awk '{print $0/60/60/24;}' /proc/uptime | cut -d '.' -f1`
- if test $uptimeDays -le 1
- then
- piDecimalPlace=`echo $uptimeDays+1 | bc`
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement