Peter Watkins PowerCenter plugin will do what you want. See: http://www.tux.org/~peterw/slim/slim7/PowerCenter/
PowerCenter is all about controlling X10 devices. But all you really need to do is create a custom script named '/usr/local/sbin/heyu', incorporate your code and then parse the cmd line args correctly. When PowerCenter detects a LMS power event (player on or player off) it will execute 'heyu' with two args: 'on|off' & housecode. The house code tells you which player is changing power state. IMHO, using PowerCenter is a more elegant way of responding to power events than constantly polling LMS via a croned cli script. ------------------------------------------------------------------------ gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=99977 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
