Jump to content

state_cmd doesn't seems to work :(


ben01771

Recommended Posts

Posted

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.sh
inish_cmd: /data/test.sh

and this is /data/test.sh :

#!/bin/bash
touch /data/test

The test file is never created, maybe i do something wrong ?

Thanks

BeN

Posted
Here is my utserver.conf (in ut folder) :

state_cmd: /data/test.sh
inish_cmd: /data/test.sh

uTorrent 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.sh

since 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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...