Execute Plug-in auto upload

Suggest, post, or discuss plugins for Deluge
Post Reply
televi
New User
New User
Posts: 1
Joined: Sun Sep 30, 2018 4:25 pm

Execute Plug-in auto upload

Post by televi »

hello everyone,

i have this script:

Code: Select all

#!/bin/bash
torrentid=$1
torrentname=$2
torrentpath=$3
echo "Torrent Details: " "$torrentname" "$torrentpath" "$torrentid"  >> /home/deluge/log.txt
echo "Torrent Details: " "$torrentname" "$torrentpath" "$torrentid"  >> $torrentpath/$torrentname/log.txt
but for some reason its not sending the file to my ftp. Has no issue writing the first log.txt but why is it not writing the second log.txt? what am i doing wrong?
Cas
Top Bloke
Top Bloke
Posts: 3643
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Execute Plug-in auto upload

Post by Cas »

Could be permissions or path needs quoting?
Post Reply