Unix – Mac OS X: at command not working

I am going to schedule a job by using at command. Here I tried the following command:

$ at now + 1 minuteecho 'Test at command'<EOD>

I saw the job is scheduled by using at -l. However, I saw no echo out.

I guess that I may need to add user to at.allow file. I cannot find at.allow in my Mac (Snow Leopard). Not sure what I need to do to test this at command?

Solution:

To enable the needed atrun daemon, as man atrun says, execute:

launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist

as root (e.g. via sudo). Once you’ve done that, /var/at/ will be the key directory (though the simplest way is to use at as root — e.g., once again, by sudo!-).