Want something added? Ask for it here.
OneCD
Hero Member
Posts: 610 Joined: March 4th, 2017, 3:47 pm
Post
by OneCD » January 13th, 2019, 5:46 pm
Hello,
I've just been caught-out by this again.
I'm trying a new external Python post-processing script, and I forgot to set the executable bits on it. I was able to select this script via the SAB UI but SAB didn't complain until it attempted to run the script. It then told me the script wasn't executable.
Would it be possible for SAB to issue a logged warning message when a non-executable script has been selected for a queue item? Maybe this could happen everytime a new queue item is added, or an existing queue item changes post-processing to use an unexecutable script?
Thank you.
Stuff I like : Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
safihre
Administrator
Posts: 5580 Joined: April 30th, 2015, 7:35 am
Contact:
Post
by safihre » January 15th, 2019, 1:55 am
Sure, we can do that. Let me check.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
safihre
Administrator
Posts: 5580 Joined: April 30th, 2015, 7:35 am
Contact:
Post
by safihre » January 15th, 2019, 3:02 am
Oke maybe it's harder than I thought, since post-proc scripts are set in multiple places.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
OneCD
Hero Member
Posts: 610 Joined: March 4th, 2017, 3:47 pm
Post
by OneCD » January 15th, 2019, 3:16 am
Thanks @safihre.
What if the choice of listed scripts shows only the executable ones? Then the user wouldn’t be able to select a non-executable script.
Stuff I like : Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
safihre
Administrator
Posts: 5580 Joined: April 30th, 2015, 7:35 am
Contact:
Post
by safihre » January 15th, 2019, 3:30 am
That would be possible, but would that not be confusing?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
OneCD
Hero Member
Posts: 610 Joined: March 4th, 2017, 3:47 pm
Post
by OneCD » January 15th, 2019, 3:43 am
Well, it may lead to support questions like “
why can’t SABnzbd see my script? ”
Then my first question would be “
is it executable? ”
Stuff I like : Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE