I think there would be a problem, namely what would the effect of
pressing the key in normal use be?

But the ShutdownServer plugin should do it. It was originally intended
for shutting down the server, hence its name, but it can run any script
one chooses.

It is set to work with a user-configurable delay of specified numbers
of minutes. But a glance at the text of the plugin shows the lines

# Kick off slimserver timer that will call shutdownServer
                                Slim::Utils::Timers::setTimer(1, 
Time::HiRes::time() +
($menuOptions[$menuSelection{$client}] * 60), \&shutdownServer);
                        }

Presumably deleting * 60 would change the delay to a number of seconds,
so the script would run one second after being invoked.


-- 
danco
------------------------------------------------------------------------
danco's Profile: http://forums.slimdevices.com/member.php?userid=210
View this thread: http://forums.slimdevices.com/showthread.php?t=36981

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to