Hi there,
I want to have an email notification whenever a download is completed but the script I configured is not firing:
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "\/home\/torrent_done.sh",
Script:
echo "haha !!!" >> /tmp/test.test
echo "Un torrent est termine de se telecharger : http://mydomain/downloads" | mail -s "Torrent termine" myself@gmail.com
Nothing in the log, the script is chmoded +x for everyone.
Help please ! :/
script-torrent-done-filename script not firing
Re: script-torrent-done-filename script not firing
you seem to have left out the "shebang" line (the interpreter the script is to run under). try this:
#!/bin/bash
echo "haha !!!" >> /tmp/test.test
echo "Un torrent est termine de se telecharger : http://mydomain/downloads" | mail -s "Torrent termine" myself@gmail.com
#!/bin/bash
echo "haha !!!" >> /tmp/test.test
echo "Un torrent est termine de se telecharger : http://mydomain/downloads" | mail -s "Torrent termine" myself@gmail.com