Is there a way to determine if sabnzbd is currently downloading programmatically
Posted: November 5th, 2010, 10:16 pm
Hi all,
I'm a happy sab user on a mythtv ubuntu system. I have a script that runs when mythtv is closed that checks to see if is ok to shutdown. It checks for samba transfers, ssh user logins, specific programs, etc.
I'd hate for the system to shut down abruptly while sabnzbd is in the middle of a download. Is there any way via shell script that I can determine if sabnzbd is in a middle of a download? I considered two techniques:
1) Some direct interface to sabnzbd or parsing log entry (if so, which one?), or
2) Some script to monitor CURRENT download rate.
Any thoughts or ideas? Thanks!
I'm a happy sab user on a mythtv ubuntu system. I have a script that runs when mythtv is closed that checks to see if is ok to shutdown. It checks for samba transfers, ssh user logins, specific programs, etc.
I'd hate for the system to shut down abruptly while sabnzbd is in the middle of a download. Is there any way via shell script that I can determine if sabnzbd is in a middle of a download? I considered two techniques:
1) Some direct interface to sabnzbd or parsing log entry (if so, which one?), or
2) Some script to monitor CURRENT download rate.
Any thoughts or ideas? Thanks!