Run Perl script upon completion?

Ask for help and report issues with the Mac OS X version of Transmission
Post Reply
HerbE
Posts: 4
Joined: Sat Feb 16, 2013 12:16 am

Run Perl script upon completion?

Post by HerbE »

Hey all, I'm trying to have transmission run a perl script upon torrent completion. I know there is an option to run a call script upon completion.. but i'm not quite sure how to make it all work. I attempted to just plug my perl script in there but it doesn't seem to work. The script works fine if run from terminal. Help!
rale09
Posts: 9
Joined: Fri Dec 23, 2011 7:34 pm

Re: Run Perl script upon completion?

Post by rale09 »

While I'm not sure exactly how to do it, I'm gonna try and answer this one because no one is answering my question :D

If it works from Terminal, you need to call a shell script (this would be a file with an .sh extension), which contains the command to run the Perl script. I don't know if you can run this directly from Transmission by selecting it, but in case you can't, you need yet another file, an AppleScript, with which you would call the shell script. Yep, Script-ception. (Do try with the shell script only first, it might just work)
Post Reply