Pre-queue script causes sabnzbd to hang

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
warthog
Newbie
Newbie
Posts: 7
Joined: March 15th, 2010, 3:27 pm

Pre-queue script causes sabnzbd to hang

Post by warthog »

Obviously I've got something screwed up here, but I can't tell what.  The script runs. It starts the script 'sabmon' if it isn't running, but the nzb isn't added to the queue and sabnzbd stops responding requiring kill -9 to stop it.
Any suggestions on getting the script below to work in pre-queue?

Code: Select all

#!/usr/bin/python
import commands
import os
runchk =  commands.getoutput('ps aux | grep -v grep | grep sabmon')
if not 'sabmon' in runchk:
	os.system('path-to-script/sabmon &')
print 1
 
0.6.0RC1
Ubuntu HH
Post Reply