Hi there,
I would like to create a script so that when my torrent finishes downloading it auto extracts.
Here is what I have got so far with no luck.
I followed a tutorial from the transmission website here.
I had to edit my settings.json in my transmission jail accordingly as well with the service stopped. Restarted the service and nothing happened. Checked var/logs/ didnt see anything.
so I attempted to just create a bash script on my own and its been many years so i made a simple one and tried to execute it within my jail and this is what i get:
and the contents of my script file
I just wanted to do a simple test to see if that would execute but it did not. So I am not sure what to do here. My goal is to have every torrent i download be auto extracted for me.
Here is what I have so far for my own bash script to do this:
I know this isn't a bash forum (pardon the pun) but i was hoping this would extract any newly completed torrents and move them to the main download folder. However, I cannot seem to execute even the most simplest of bash scripts??
Can any one help?
I would like to create a script so that when my torrent finishes downloading it auto extracts.
Here is what I have got so far with no luck.
I followed a tutorial from the transmission website here.
I had to edit my settings.json in my transmission jail accordingly as well with the service stopped. Restarted the service and nothing happened. Checked var/logs/ didnt see anything.
so I attempted to just create a bash script on my own and its been many years so i made a simple one and tried to execute it within my jail and this is what i get:
Code:
root@bit_1:/ # unrarr.sh /bin/unrarr.sh: 6: Syntax error: newline unexpected
and the contents of my script file
Code:
#!/bin/bash # echo "hello world"
I just wanted to do a simple test to see if that would execute but it did not. So I am not sure what to do here. My goal is to have every torrent i download be auto extracted for me.
Here is what I have so far for my own bash script to do this:
Code:
#!/bin/bash # SRC_DIR="${TR_TORRENT_DIR}/${TR_TORRENT_NAME}" DEST_DIR="${TR_TORRENT_DIR}" RAR="$(find "$SRC_DIR" -type f -iname "*.rar")" unrar e RAR
I know this isn't a bash forum (pardon the pun) but i was hoping this would extract any newly completed torrents and move them to the main download folder. However, I cannot seem to execute even the most simplest of bash scripts??
Can any one help?