#!/usr/bin/python import linuxcnc, hal import os h = hal.component("update") h.newpin("trigger",hal.HAL_BIT, hal.HAL_IN) c = linuxcnc.command() h.ready try: while 1: if h.trigger and not old_trigger: os.system("axis-remote --reload ") old_trigger = h.trigger except KeyboardInterrupt: pass