Solved suspending system with script qestion
#1
I wanted to post this under off-topic but can't open thread there.

I am pitting together a script. It will be active over night.
It will be active every 10 minutes. It will check if sabnzbd+ is downloading something,
or is it doing enything with downloaded files (lets say unpacking for example).

If queue is empty and sab is idle it will update video library and suspend system.

I have Sickbeard and Couchpotato on same machine, they do all post processing of
downloaded files. One thing I would not want to do is suspend system if CP or SB are doing something.

Can anbody just tell me if I use "pm-suspend" command in python script.
will it wait for processes to finish before suspend or not.

Thank you.
Reply
#2
I've moved this to off-topic, but the thread probably would be okay under "Supplementary tools for XBMC" as well.
Reply
#3
haven't thought abut that one Smile

well it is just a question abut one command in python so hopefully someone will com along wit some kind of answer.

Thanks ned

Ok this can be deleted, closed what ever Smile

found best solution i will ever find, use xbmc api so send suspend command

Reply

Logout Mark Read Team Forum Stats Members Help
suspending system with script qestion0