Re: NSTask(syslog)->NSPipe->NSFileHandle->readInBackgroundAndNotify buffers

2008-06-11 Thread Jason Bobier
Hey Ken, I was originally going to use the ASL api, but it seems to require polling. Looking through the asl code, I noticed that the syslog command didn't poll on Leopard and between that and the different ASL_KEY_TIME formats on Tiger and Leopard, I decided to use the syslog -w 5000 -F

Re: NSTask(syslog)->NSPipe->NSFileHandle->readInBackgroundAndNotify buffers

2008-06-11 Thread Ken Thomases
On Jun 11, 2008, at 3:10 PM, Jason Bobier wrote: The issue that I'm having is that I'm using NSTask to create a syslog process with the -w option to continually parse specific syslog entries. The problem is that if there are too few entries, I never receive the notification. I understand

NSTask(syslog)->NSPipe->NSFileHandle->readInBackgroundAndNotify buffers

2008-06-11 Thread Jason Bobier
Hey folks, I know that this has been discussed here before, but after spending hours reading cocoa-dev posts, I have yet to find the solution. The issue that I'm having is that I'm using NSTask to create a syslog process with the -w option to continually parse specific syslog entries. The p