issue warning when external script is not executable?

Want something added? Ask for it here.
Post Reply
User avatar
OneCD
Full Member
Full Member
Posts: 240
Joined: March 4th, 2017, 3:47 pm

issue warning when external script is not executable?

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 Python Raspberry Pi RAID SABnzbd+ SickChill Transmission Usenet VirtualBox Watcher3 WordPress XFCE

User avatar
safihre
Administrator
Administrator
Posts: 3042
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: issue warning when external script is not executable?

Post by safihre » January 15th, 2019, 1:55 am

Sure, we can do that. Let me check.

User avatar
safihre
Administrator
Administrator
Posts: 3042
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: issue warning when external script is not executable?

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.

User avatar
OneCD
Full Member
Full Member
Posts: 240
Joined: March 4th, 2017, 3:47 pm

Re: issue warning when external script is not executable?

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 Python Raspberry Pi RAID SABnzbd+ SickChill Transmission Usenet VirtualBox Watcher3 WordPress XFCE

User avatar
safihre
Administrator
Administrator
Posts: 3042
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: issue warning when external script is not executable?

Post by safihre » January 15th, 2019, 3:30 am

That would be possible, but would that not be confusing?

User avatar
OneCD
Full Member
Full Member
Posts: 240
Joined: March 4th, 2017, 3:47 pm

Re: issue warning when external script is not executable?

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 Python Raspberry Pi RAID SABnzbd+ SickChill Transmission Usenet VirtualBox Watcher3 WordPress XFCE

Post Reply