Run a Script at shutdown..

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Masternoob Offline
Junior Member
Posts: 19
Joined: Mar 2009
Reputation: 0
Lightbulb  Run a Script at shutdown..
Post: #1
i made a python script that shuts down my media server over LAN...

now i want that if i power off the xbox that the server also shuts down...
i need to run the script automaticly when i turn off the xbox...

can someone tell me how this works?

(sorry for my BAAAD english Frown )
find quote
althekiller Offline
Retired Team-Kodi Member
Posts: 5,002
Joined: May 2004
Reputation: 12
Post: #2
Welcome to the forums.
There's currently no mechanism for running scripts at shutdown. Please fill out a feature request ticket on trac.
find quote
Waffa Offline
Posting Freak
Posts: 1,161
Joined: May 2008
Reputation: 7
Location: Netherlands
Post: #3
You can start your script with your remote.

If you use a harmony remote, create a button with 2 commands.
find quote
mikko70 Offline
Posts: 80
Joined: Mar 2007
Reputation: 0
Post: #4
check this, what i added some time ago
it add button in pm3 , where you could select shutdown xbox or shutdown xbox+nas,
and there is script to shutdown lacie nas

if you change your own script rename it to ShutdownNAS or change script name in PM3
find quote