trminimal

Very basic trmnl server scripts
Log | Files | Refs | README

crontab_example.txt (565B)


      1 #minute	hour	mday	month	wday	[flags]	command
      2 # Every hour run a `git pull` to make sure we have latest changes
      3 0		*		*		*		*		cd /var/www/trmnl.mfashby.net && /usr/local/bin/git pull
      4 # Every 5 minutes rotate the display...
      5 */5		*		*		*		*		cd /var/www/trmnl.mfashby.net && /usr/local/bin/go run rotate_display.go
      6 # Every hour refresh the weather
      7 10		*		*		*		*		cd /var/www/trmnl.mfashby.net && /usr/local/bin/go run weather.go
      8 # Every day just after midnight refresh the hello message
      9 01		0		*		*		*		cd /var/www/trmnl.mfashby.net && /usr/local/bin/go run hello.go