Recent Changes - Search:
HomePage



Materiel


Photo


Système et réseau

 Sous Debian Gnu Linux...

 ... et Ubuntu


Gestion de projet

 ...informatique


Cours


Divers


Private




 edit SideBar



Custom Crons

RaspberryPi.CustomCrons History

Hide minor edits - Show changes to output

November 09, 2016, at 10:51 PM by 90.17.9.103 -
Added lines 1-26:
! Custom cron scripts

!! /etc/cron.daily/apache2-restart
[@
#!/bin/sh
apache2ctl restart
@]

!! /etc/cron.d/ds18b20
[@
# Check kitchen T°C every minute & save it into /var/log/ds18b20/kitchen.log
*/5 * * * * root if [ $(find /sys/bus/w1/devices/ -name "28-*" | wc -l) -eq 1 ]; then echo `date +"\%Y-\%m-\%d \%H:\%M:\%S"`\;`date +\%s`\;`find /sys/bus/w1/devices/ -name "28-*" -exec cat {}/w1_slave \; | grep "t=" | awk -F "t=" '{print $2/1000}'` >> /var/lib/ds18b20/kitchen_$(date +\%Y-\%m).log; fi;
@]

!! /etc/cron.d/ovh-dynhost
[@
*/15 * * * * root cd /opt/DynHost/ && ./dynhost > /dev/null
@]

!! /etc/cron.d/slideshow
[@
# Restart new slideshow every morning
01 00 * * * root $(/opt/slideshow/slideshow.sh) > dev/null
01 12 * * * root $(/opt/slideshow/slideshow.sh) > dev/null
@]
Edit - History - Print - Recent Changes - Search
Page last modified on November 09, 2016, at 10:51 PM