Actual script I want to run at boot is:
Code:
#!/bin/bash
while :
do
IP='10.0.0.185'
DN=$(S=1; F=/sys/class/net/ppp0/statistics/rx_bytes; X=`cat $F`; sleep $S; Y=`cat $F`; BPS="$(((Y-X)/S))"; echo $BPS)
UP=$(S=1; F=/sys/class/net/ppp0/statistics/tx_bytes; X=`cat $F`; sleep $S; Y=`cat $F`; BPS="$(((Y-X)/S))"; echo $BPS)
CPU=$(uptime | grep -oh "load average: [0-9].[0-9][0-9]")
CPU=$(echo $CPU | sed -r 's/^.{14}//')
UPTIME=$(cat /proc/uptime)
UPTIME=$(echo $UPTIME | cut -f1 -d" ")
#echo $DN
#echo $UP
#echo $CPU
#echo $UPTIME
curl $IP/?$DN/$UP/$CPU/$UPTIME!
sleep 1
done
Current start script is:
Code:
#!/bin/bash
./statupdate &
are you able to point me at other init scripts? I have had a look at some on the server itself, but they all seem way more complicated that I have seen posted online (albeit they work!)