Page 1 of 1
Transmission script

Posted:
Wed May 28, 2014 7:27 pm
by karainier
Hello,
I am trying to get transmission to call a script when it completes a torrent. The script runs under root user but not as tr-daemon. permissions are set as:
drwxr-xr-x root root .
drwxr-xr-x root root ..
-rwxr-xr-x root root script.sh
I can't tell if transmission is unable to call the script due to a permissions issue or if something in the script is failing once called. Where is the syslog located so i can see the call?
Re: Transmission script

Posted:
Thu May 29, 2014 7:24 pm
by fvdw
the syslog is in /var/log/messages , but it will be empty as long as debug mode is not set. Furthermore I think you will not find something in syslog when this script doesn't run.
there is no user tr-daemon, and why do you want to run it under that username ?
to check if your script runs let it make a test file (include a command like "link /share/1000/public/test.txt") and check if it is created
ps. shell scripts containing <CR><LF> at end of line (dos syntax) will not work on linux, you need to use unix format only <LF>
This will happen when you created a shell script using a editor under windows like notepad.
Use an appropriate editor to make you shell script and save it in unix format.
To check if your command file doesn't has this wrong syntax an editor like notepad++ can be very helpful
Re: Transmission script

Posted:
Thu May 29, 2014 7:29 pm
by karainier
I mean that it is called by the daemon so runs as "nobody" correct?
Re: Transmission script

Posted:
Thu May 29, 2014 7:43 pm
by karainier
What is the command to manually run tr daemon? With logging enabled?
Re: Transmission script

Posted:
Mon Jun 02, 2014 7:43 pm
by karainier
Thanks for the tip on formatting, I use notepad ++ or vi for most everything.
I ran the tr-daemon with debug log and in foreground, found an error in my script setting a path to a log file, its working fine now. It was never a problem with tr-daemon. Thanks again for your support :).