LinuxMCE Forums

General => Users => Topic started by: brononius on November 30, 2012, 01:57:03 pm

Title: [SOLVED] Trigger script with respond to events
Post by: brononius on November 30, 2012, 01:57:03 pm
What's the best way to start a homemade script with respond to events?
I couldn't figure out what kind of event command i need to use.
Is this #28 PK_CommandGroup (int)

fe when you push a light switch, it should trigger '/scripts/startprinting.sh'
Title: Re: Trigger script with respond to events
Post by: sambuca on November 30, 2012, 08:55:41 pm
You will find all commands available to you in Advanced -> DCE -> Commands in the web admin. In that list is also the device that implements it (the device the command must be sent to).

In your case you might find what you are looking for with "Spawn Application" in the App_Server device (note that there is one App_Server per computer).

br,
sambuca
Title: Trigger script with respond to events
Post by: brononius on December 01, 2012, 08:47:40 am
Perfect!!!!
This opens a whole new box of oppurtunities to play around with...  ::)

Didn't understand the term 'spawn'. But now i do... ;)