Execute Plugin - How to transfer deluge variables from one bash script to another?
Posted: Wed Aug 15, 2018 9:51 pm
hi! love deluge and the plugins! GREAT work! i like to know how to transfer deluge variables
torrentid=$1
torrentname=$2
torrentpath=$3
from this script:
to this one? this one is fired by the first (notification.sh):
all the scripts are working, just this one fail to deliver the notification with the torrent name included!
thanks in advance for all your help!
torrentid=$1
torrentname=$2
torrentpath=$3
from this script:
Code: Select all
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PATH="/snap/bin:$PATH"
export DISPLAY=:0
torrentid=$1
torrentname=$2
torrentpath=$3
if [[ $torrentpath == "/media/storage/Downloads/TVToProcess" ]] ; then
bash /home/pixelburst/bin/tv.sh
bash /home/pixelburst/bin/notification.sh $@
elif [[ $torrentpath == "/media/storage/Downloads/AnimeToProcess" ]] ; then
bash /home/pixelburst/bin/anime.sh
bash /home/pixelburst/bin/notification.sh $@
elif [[ $torrentpath == "/media/storage/Downloads/MoviesToProcess" ]] ; then
bash /home/pixelburst/bin/movies.sh
bash /home/pixelburst/bin/notification.sh $@
else
:
fi
Code: Select all
#!/bin/bash
torrentid=$1
torrentname=$2
torrentpath=$3
curl -v -k -X POST \
--data-urlencode 'payload={"text":":white_check_mark: *Deluge - File Completed!* \n'$torrentname' \nFile download completed! \n---------------------------------"}' \
"link to notification service"
thanks in advance for all your help!