Page 1 of 1

Pre-queue script causes sabnzbd to hang

Posted: April 15th, 2011, 1:41 pm
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