Unable to get debug info when writing scripts

Ask for help and report issues with the Mac OS X version of Transmission
Post Reply
yomamaissoskinny
Posts: 2
Joined: Mon Jan 24, 2011 12:05 am

Unable to get debug info when writing scripts

Post by yomamaissoskinny »

OS X 10.6.6 Transmission 2.13

I am unable to get any debug info when trying to write a script. If I run transmission from a terminal, I get...

sh: /Users/username/Library/Application: No such file or directory

...and that's it. Currently the script only touches /tmp/testfile1 and echos $1 to /tmp/testfile2. When run manually both files are created, and testfile2 has the string passed to it. I've tried piping the output into a log file, nothing. Nothing in messages aside from it showing that it is running the script. How can I get debug info from transmission? Thanks.
Rolcol
Posts: 337
Joined: Sun Aug 10, 2008 8:00 am

Re: Unable to get debug info when writing scripts

Post by Rolcol »

Can you post the script or tell me how exactly you're running Transmission?
yomamaissoskinny
Posts: 2
Joined: Mon Jan 24, 2011 12:05 am

Re: Unable to get debug info when writing scripts

Post by yomamaissoskinny »

The script is...

#!/bin/sh

TC=/usr/bin/touch
EC=/bin/echo

$TC /tmp/testfileone
$EC $1 >> /tmp/testfiletwo

I've tried running Transmission from both launching it from the dock, and calling it from a terminal with username$ /Applications/Transmission.app/Contents/MacOS/Transmission

In the script I've also tried it without the variables. With touch /tmp/testfileone and /usr/sbin/touch /tmp/testfileone
Post Reply