Thanks for the replies.
I must be doing something wrong somewhere, because if I assign the script to a newzbin category, it utterly fails to run. If however I assign it as the main script under Switches, I just get the "Cannot run script" error.
I've logged in via telnet and run chmod +x /volume1/SABnzbd/Scripts/copy.sh
The script itself is just:
Code: Select all
#!/bin/bash
mv $1 /volume1/Recordings/Shared/
I've set SAB to download to the default 'public' share which still has Linux permissions, and everyone has access. I've even gone in and done a chmod -R 777 just to make sure everyone has permission. SAB is still setting its own permission even there though as I can't (without logging into the NAS web interface) delete the files i'm test-downloading.
I've had a quick look through the logs, and I can see an error number there which I'm hoping means someone can tell me what I'm doing wrong.
Code: Select all
16:03:22,037::INFO::[postproc:243] Starting PostProcessing on (Some)_File__(1991) => Repair:True, Unpack:True, Delete:True, Script:copy.sh
2010-11-19 16:03:22,040::INFO::[postproc:134] Saving postproc queue
2010-11-19 16:03:22,039::INFO::[postproc:247] Par2 check starting on (Some)_File__(1991)
2010-11-19 16:03:22,051::INFO::[postproc:254] Running repair on set Some File, (1991)
2010-11-19 16:03:22,071::INFO::[newsunpack:664] Quick-check for Some File, (1991) is OK, skipping repair
2010-11-19 16:03:22,075::INFO::[newsunpack:721] Deleting /volume1/SABnzbd/Downloads/(Some)_File__(1991)/Some File, (1991).par2
2010-11-19 16:03:22,077::INFO::[newsunpack:735] Deleting /volume1/SABnzbd/Downloads/(Some)_File__(1991)/Some File, (1991).vol00+1.par2
2010-11-19 16:03:22,091::INFO::[postproc:271] Par2 check finished on (Some)_File__(1991)
2010-11-19 16:03:22,095::INFO::[misc:837] Creating directories: /volume1/public/(Some)_File__(1991)
2010-11-19 16:03:22,099::INFO::[postproc:315] Running unpack_magic on (Some)_File__(1991)
2010-11-19 16:03:22,131::INFO::[downloader:724] Thread [email protected]:443: forcing disconnect
2010-11-19 16:03:22,146::INFO::[newsunpack:185] Unrar starting on /volume1/SABnzbd/Downloads/(Some)_File__(1991)
2010-11-19 16:03:22,149::INFO::[newsunpack:384] Extracting rarfile /volume1/SABnzbd/Downloads/(Some)_File__(1991)/Some File, (1991).part1.rar (belonging to Some File, (1991)) to /volume1/public/_UNPACK_(Some)_File__(1991)
2010-11-19 16:03:32,796::INFO::[newsunpack:564] Skipping unrar file check due to unreliable file names or old unrar
2010-11-19 16:03:32,799::INFO::[newsunpack:568] Unpacked 1 files/folders in 10 seconds
2010-11-19 16:03:32,801::INFO::[newsunpack:407] Deleting /volume1/SABnzbd/Downloads/(Some)_File__(1991)/Some File, (1991).part1.rar
2010-11-19 16:03:32,807::INFO::[newsunpack:407] Deleting /volume1/SABnzbd/Downloads/(Some)_File__(1991)/Some File, (1991).part2.rar
2010-11-19 16:03:32,812::INFO::[newsunpack:407] Deleting /volume1/SABnzbd/Downloads/(Some)_File__(1991)/Some File, (1991).part3.rar
2010-11-19 16:03:32,818::INFO::[newsunpack:407] Deleting /volume1/SABnzbd/Downloads/(Some)_File__(1991)/Some File, (1991).part4.rar
2010-11-19 16:03:32,840::INFO::[newsunpack:189] Unrar finished on /volume1/SABnzbd/Downloads/(Some)_File__(1991)
2010-11-19 16:03:32,844::INFO::[postproc:317] unpack_magic finished on (Some)_File__(1991)
2010-11-19 16:03:32,865::INFO::[newsunpack:127] Running external script /volume1/SABnzbd/Scripts/copy.sh(/volume1/public/(Some)_File__(1991), (Some)_File__(1991).nzb, (Some)_File__(1991), , None, alt.binaries.multimedia.cartoons.looneytunes, 0)
2010-11-19 16:03:32,985::INFO::[newsunpack:134] Failed script /volume1/SABnzbd/Scripts/copy.sh, Traceback:
Traceback (most recent call last):
File "/volume1/@appstore/sab2/SABnzbd-0.5.6/sabnzbd/newsunpack.py", line 132, in external_processing
startupinfo=stup, env=env, creationflags=creationflags)
File "/var/packages/sab2/target/utils/lib/python2.5/subprocess.py", line 594, in __init__
errread, errwrite)
File "/var/packages/sab2/target/utils/lib/python2.5/subprocess.py", line 1097, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
2010-11-19 16:03:33,071::INFO::[postproc:470] Cleaning up (Some)_File__(1991)
2010-11-19 16:03:33,081::INFO::[__init__:702]