Shell Script doesn't run automatically though it is registered in Mac OS X Login Items

I have the following shell script registered in my "Login Items" preferences but it does not seem to have any effect. It is meant to launch the moinmoin wiki but only works when it is run by hand from a terminal window, after which it runs until the machine is next shut down.

cd /Users/stuartcw/Documents/Wiki/moin-1.7.2
/usr/bin/python >> logs/`date +"%d%b%Y"`.log 2>&1 &

I would really like the Wiki to be available after restarting so any help in understanding this would be appreciated.


launchd is one of the best parts of MacOS X, and it causes me great pain to not be able to find it on other systems.

Edit and place this in /Library/LaunchDaemons as

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">
    <string>user to run this as</string>

Try using launchd. More info at

Some helpful links:

Mac OS X: Creating a login hook

Making Shell Scripts Start at Login or System Startup

See also Lingon for a front end, should you decide to use Launchd instead.

I don't know much about it, since I don't use login items. Just a suggestion, maybe try with applescript that calls those shell commands, and put that in Login Items.

Need Your Help

What is so bad with threadlocals

python django thread-local

Everybody in Django world seems to hate threadlocals(, I read Armin's essay on this(http://...