Noob in scripting

Come up with a useful post-processing script? Share it here!
Post Reply
yosh
Newbie
Newbie
Posts: 5
Joined: October 1st, 2009, 10:23 am

Noob in scripting

Post by yosh »

Hello, (and sorry for my bad english)

I'm using sabnzbd for a year now, running on a synology NAS (107+), and i'm interesting for creating a script for the NAS upnp automatic update. I think i found explanations on this topic : http://forums.sabnzbd.org/index.php?topic=2559.0

I also read the sabnzbd documentation wiki, script chapter included

The problem is that i don't understand how to execute a script in sab. I've setting the script folder, selected my script, and in the log file i have a "not such file or directory".

I have no idea what a script should be. Juste a text file rename in script.sh ? Putting this file in the script folder i just that i have to do ?

I've reading a lot of topics here, but i don't understand how to install and execute script in sab.

I know that is a realy noobish question but maybe you can explain me from the beginning, ie when i copy a script, what next ?

Thank you very much.
yosh
Newbie
Newbie
Posts: 5
Joined: October 1st, 2009, 10:23 am

Re: Noob in scripting

Post by yosh »

Thank you i'm going to try this. Sabnzbd is really a great option for newsgroups !
yosh
Newbie
Newbie
Posts: 5
Joined: October 1st, 2009, 10:23 am

Re: Noob in scripting

Post by yosh »

i did the "chmod thing" :) and i have the same problem:

/var/packages/sabnzbd/target/utils/bin/nice: /volume1/video/upnp.sh: No such file or directory

however sab find the file after i set the script folder. I don't understand what is not findeable.

Thank you for your help.
yosh
Newbie
Newbie
Posts: 5
Joined: October 1st, 2009, 10:23 am

Re: Noob in scripting

Post by yosh »

yep the script is in this directory, and the NAS and sab have full access. In fct this is the directory for files downloaded by sabnzbd.

i really don't understand... maybe i should test with a script i'm sure is working. Hve you an exemple for a simple script that echo the name of downloaded file in the output for example ? (i'd never edit unix scripts)

So i can test if is just the path of script not working or the script itself.
Post Reply