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

This page has moved to: https://github.com/linksmart/device-gateway/wiki/Remote-command-execution

Follow link above if you are not automatically redirected in 5 seconds.

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