Page tree
Skip to end of metadata
Go to start of metadata

Useful remove execution use-cases with Device Gateway:


Storing log messages

type: service

exec: sed -n 'w /path/out'


Getting log tail

type: task

exec: tail -1000 ~/logs/device-gateway.log


Speaking words (macOS)

type: service

exec: while read line ; do echo $line | say ; done


Reboot

type: task

exec: sudo reboot


Heartbeats

type: timer

interval: 10

exec: date


  • No labels