ben01771 Posted January 26, 2012 Report Posted January 26, 2012 Hi guys ,i'm trying to execute a batch script when a torrent download change / is finished.Here is my utserver.conf (in ut folder) :state_cmd: /data/test.shinish_cmd: /data/test.shand this is /data/test.sh :#!/bin/bashtouch /data/testThe test file is never created, maybe i do something wrong ?ThanksBeN
mcdonald Posted January 31, 2012 Report Posted January 31, 2012 Here is my utserver.conf (in ut folder) :state_cmd: /data/test.shinish_cmd: /data/test.shuTorrent Server uses fork/exec to invoke the program asynchronously, running it detached. You'll need to specify a command something like:/bin/bash -c /data/test.shsince the command you enter isn't presented directly to a shell, so you'll need to specify the shell to run on the command line.Also, hopefully there was just a copy/paste error, since inish_cmd should be finish_cmd.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.