criquet wrote:
Ok, I think I get it. The message is coming from the cron (launchd?) application for every job that executes. I have two that run every minute which is why I'm getting two messages every minute.
Hmm, I thought someone already mentioned that, but I can't seem to find it. Yes, the error occurs for each and every cron job that runs.
This is almost certainly a bug in launchd in which it is mishandling or improperly allocating port 9. If that means, tcp port 9, that is effectively /dev/null. It could be that the application is attempting to discard the jobs output. Or, it's attempting to capture the output for logging. I suspect the latter and since I've yet to see any of my jobs' output in any log, anywhere, this message could be an indication of the bug.
The port in question is a "Task Special Port". It's a kernel thing; completely unrelated to TCP ports.
The output of the cron job should be mailed to the user related to the crontab file. By default, root's email is redirected to /dev/null. Check /var/root/.forward and/or /etc/postfix/aliases to see or change where root's email goes. If you're not getting cronjob output for other users, verify the job generates output and that the user can get mail via something like "echo test | mail user"
If you're feeling up to it, you might be able to convert the job to run from launchd directly instead of through cron. See
http://developer.apple.com/macosx/launchd.html
Generally, I try to stay away from cron jobs that run every minute. It doesn't take much to get multiple jobs running (if one or more takes longer than a minute, gets blocked, etc.) Unless the job checks for the existence of other duplicate jobs already running, you can also get into situations where files get clobbered, corrupted etc. For things that really have to run every minute or so, it's often better to make a script with a forever loop and a sleep 60 -- at least this way there's only ever one job running.
Hope this helps...