Page 1 of 1

RSS not using post script

Posted: May 15th, 2012, 10:46 am
by Hairybiker
Using 0.7.0Beta5

I have some rss feeds setup and added a post script to clean some files from one feed.
I have it set in the defaults at the top but it is not run.
Does it also need to be set in the categories ?

The script is executable (+rx) by anyone and is owned by my user (on a Linux Mint base)

My script is very simple and I added an echo $1 >>~/result.txt but it isn't run

Basically it is just
rm $1/filename
for each one I want deleted so nothing complicated.

Re: RSS not using post script

Posted: May 15th, 2012, 12:22 pm
by shypike
You need to put quotes around the parameters, so:
rm "$1/filename"
Second set logging level to debug, do a job and then look
into the log file and search for your script's name.

Re: RSS not using post script

Posted: May 16th, 2012, 7:57 am
by Hairybiker
Thanks.
OK got it working but I had to add the script to the actual download filter rather than to the top line which is where I thought it would be picked up for all the filters like the Processing action & category settings.

Re: RSS not using post script

Posted: May 16th, 2012, 10:28 am
by shypike
If you put the script in the "Default" category it will be picked up by the other categories.
But only when these categories have "default" as script.
If they have "None", this will override the global setting.

Re: RSS not using post script

Posted: May 16th, 2012, 12:44 pm
by Hairybiker
Thanks, I must have had it set to none for some reason.