Execute a command on receiving a mqtt message

1234
  1. #!/bin/sh
  2. #
  3. BASEPATH=`dirname $0`
  4. $BASEPATH/venv/bin/python $BASEPATH/exec_command.py