I have tried the script from the first post on page 1 on my Readynas ultra 2.
But I can't get it to work.
So I have tried to run the script manually by using bash posttorrent.sh, but I get this error:
: command not founde 3: {
: command not founde 18:
'osttorrent.sh: line 38: syntax error near unexpected token `do
posttorrent.sh: line 38: ` for RAR_FILE in $( find "$SRC_DIR" -type f -inam' "*.rar" ); do
All I have done to the script is changing the TR_USERNAME and TR_PASSWORD and also change it to $TR_TORRENT_HASH --remove at the end of the script.
killemov wrote:I don't know if you can run this script on a vanilla ReadyNAS Ultra 2 anyway. See the prerequisites in the first post of the aforementioned thread.
This script was written for Debian. Sure it will work on many other Linux distributions. But especially for limited operating systems (NAS,router, ...) there is the possibility it will not work.
: command not founde 3: {
: command not founde 18:
'osttorrent.sh: line 38: syntax error near unexpected token `do
posttorrent.sh: line 38: ` for RAR_FILE in $( find "$SRC_DIR" -type f -inam' "*.rar" ); do
...
I guess your version of bash is too old to be able to parse these expressions.
Sigh, although this has nothing to do with the unrar script and everything with your OS:
Your safest bet would be to only upgrade the bash package. (apt-get update, apt-get install bash) This may prove impossible as Debian Etch was declared End-Of-Life almost four years ago. If so, then you need to take your quest to the readynas/debian forums. Good luck!
Or one could rewrite the script so it supports even that "old" bash (or even other less popular shells). Just saying. Although I could spend some time on this if you wish.
Hello,
I have 2 questions, How can I make the new (2013 may) script to extract ZIP archives, and the other when I have only flt-reme.001->flt-reme.066 files but no r01, or rar, how can I force it to extract these too?
Thank you!
It appears that I may not have the required version of bash, and may not be able to upgrade it. I am running transmission on my Readynas NV+ firwmare 4.1.13:
host :/addons-config/Transmission# bash --version
GNU bash, version 2.05b.0(1)-release (sparc-unknown-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
Can anybody suggest an alternative to "=~" in the script for me?