I'm on version 4.4.1 and am trying to get a very simple bash post-processing script that will run via category to copy a file to another directory upon completion. I've read the wiki, countless forum posts, and every relevant google search. Upon download completion, Sab tries to run the following script
Code: Select all
#!/bin/bash
cp -r /data/00_Watch_Folders/00_landing_pad/$1/ /data/00_Watch_Folders/0_watch_tv/
Sab is running in a docker as user "nobody." The script is owned by "nobody" and has 777 permissions. All directories have full rwx (777). I've verified the script is executable and ran it via console, which pulls in the empty "00_landing_pad" directory.Exit(-1): Cannot run script /config/scripts/TV_script(.)sh
I ran debug logs which show the following:
I've tried the source directory as "$1" and "/$1" with the same error. I also briefly tried a python script but gave up quickly because it came back with "$1" as invalid syntax and thought the first " _" in my watch folder was an invalid decimal literal.[2025-03-01 12:18:54,437::DEBUG::[newsunpack:261] Failed script /config/scripts/TV_script(.)sh, Traceback:
Traceback (most recent call last):
File "/usr/lib/sabnzbd/sabnzbd/newsunpack(.)py", line 246, in external_processing
p = build_and_run_command(command, env=create_env(nzo, extra_env_fields))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/sabnzbd/sabnzbd/misc(.)py", line 1262, in build_and_run_command
return subprocess.Popen(command, **popen_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess(.)py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.12/subprocess(.)py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/config/scripts/TV_script(.)sh'
I'm a filthy commoner with no programming and minimal scripting experience, but I can usually stumble my way through these types of problems. This one has had be perplexed for 3 days now and I'm about to the point where I've lost more time than I ever would have saved with this script.
Appreciate anyone's insight on what I'm messing up!