issue warning when external script is not executable?

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

issue warning when external script is not executable?

Post by OneCD »

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 SickChill Transmission Usenet VirtualBox Watcher3 XFCE

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

Re: issue warning when external script is not executable?

Post by safihre »

Sure, we can do that. Let me check.

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

Re: issue warning when external script is not executable?

Post by safihre »

Oke maybe it's harder than I thought, since post-proc scripts are set in multiple places.

User avatar
OneCD
Sr. Member
Sr. Member
Posts: 349
Joined: March 4th, 2017, 3:47 pm

Re: issue warning when external script is not executable?

Post by OneCD »

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 SickChill Transmission Usenet VirtualBox Watcher3 XFCE

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

Re: issue warning when external script is not executable?

Post by safihre »

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

User avatar
OneCD
Sr. Member
Sr. Member
Posts: 349
Joined: March 4th, 2017, 3:47 pm

Re: issue warning when external script is not executable?

Post by OneCD »

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 SickChill Transmission Usenet VirtualBox Watcher3 XFCE

Post Reply