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.
Unable to get debug info when writing scripts
-
- Posts: 2
- Joined: Mon Jan 24, 2011 12:05 am
Re: Unable to get debug info when writing scripts
Can you post the script or tell me how exactly you're running Transmission?
-
- Posts: 2
- Joined: Mon Jan 24, 2011 12:05 am
Re: Unable to get debug info when writing scripts
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
#!/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