I recently purchased a new mac and after setting up transmission I can no longer get it to run a script on download completion. I can run the script directly and it works as expected:
Code: Select all
#!/usr/local/bin/node
const fs = require('fs');
fs.writeFile('./torrent-mover-test.txt',JSON.stringify(process.env,null,4),function(err){
if(err) {
return console.log(err);
}
console.log("The file was saved!");
});
I checked the transmission log and see that it does call the script, however it does not create a file (unlike when you run it in terminal directly. I checked the permissions and gave it everything.
Code: Select all
-rwxrwxrwx@ 1 me staff 237 Feb 24 15:52 torrent-mover.sh
I though that maybe I was going crazy so I searched around the forum and found the simplest test script possible in another thread.
Code: Select all
#!/bin/bash
echo "$TR_TORRENT_NAME is completed" >> ./test.log
Again, I see it called int he transmission log but it does not create a test.log file like it does when run from terminal directly. It too has the same permissions that the above script has. All attempts to search for this problem keep bringing me back to "give it execute permissions" but clearly it has all the permissions it could possibly need (and I even ran chmod a+x on it just in case).
Anybody have similar issues? I was wondering if it might be a Mojave thing but I imagine if that were the case it would be reported and probably even fixed by now (and I don't see a bunch of mentions in the forum or anything).