Page 1 of 1

Execute Plug-in auto upload

Posted: Sun Sep 30, 2018 4:49 pm
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?

Re: Execute Plug-in auto upload

Posted: Mon Oct 01, 2018 9:51 am
by Cas
Could be permissions or path needs quoting?