Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pariah99

macrumors newbie
Original poster
Sep 11, 2010
4
0
I'm trying to have my computer launch both hellanzb and rtorrent upon logging in. My scripts are as follows:

Code:
#!bin/bash
cd /opt/local/bin/
./hellanzb.py -D
exit 0

Code:
#!bin/bash
cd /opt/local/bin/
rtorrent
exit 0

When I try to run the scripts as a user agent, the scripts try to run, but I get the following system.log entries:

for hellanzb:
Code:
hellanzb v0.13 (config = /opt/local/etc/hellanzb.conf, daemonized)
Exiting: FatalError'>: Cannot continue: hellanzb needs write access to directory:
/users/pariah99/Downloads/.Incoming/daemon.working/

I'm guessing that the daemon is being started under the user that isn't me, but I'm not sure how to get it working other than changing the permissions for others, which is far from ideal.

for rtorrent:
Code:
Must be connected to a terminal.

I tried to use screen -d -m rtorrent, but then I don't even get an error message.

Does anybody have any experience getting these programs working with launchd?
 
Okay, so I fixed the hellanzb issue. For some reason I didn't have permissions under my username for the .Incoming folder. Still haven't solved the rtorrent issue :(
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.