site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; bh=SyzL0wgy1Uy/H6/NT9l9/4V7/BlZ/s0dgULstXiLtKU=; b=HJAjXPfrGsPq0XyFPXdIjND7t4nbD0+aZHrVfLzg24ShcIeZDd/qZ2pHkwrfcdSKMfhvtEOQMDHmNgqJ79sdQ86KeOdJQfNVaDfJTuOrb0KsU10cPr3sm0plJ8BPOjvTTHjhuIsz9yIhxqtk6InGrj58+eSW1A8mgtZoobDG45o= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; b=jdX+KqXzCkvQsn/cuSookGpDaj2qxX7OURctu5CiDV9zimhcOIApOgn/jeCwPllrAfwM/fFJHJq4CWfRng9JorKobLxRUQu3FiIjn8ISLRzoz7Vwp+9u4iIzo4FLOnWpeP4/XIEhiSfMa7tvwoZR9chNe6BWr6iT5pCTvzQ4pFk= Thank you, Perry Smith _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This question has come up for me before and I suspect it will again. The example this time is the web "server" that serves the Ruby "rdoc" documentation. You start it with "gem server". It has a few options like which port which has a default. I have a launchd plist file that simply starts this up at boot. But, mostly so I can show off to my friends (if I had any :-), I'd like to start it up the first time I browse to that port. The man page for launchd.plist says that the process has to "check in" using the launch(3) API. "man 3 launch" gives me back nothing. So I am lost as to what API's there are. But, even if I could find them, thats really just half the problem. The real problem is I'm looking for a way to transfer the file descriptor from launchd to the gem server using a script. (I can't modify gem just to do this -- well, I suppose I could but that only defers the problem until next time this comes up). So, how is this done? Or... if I need to write some code, thats fine. But, where do I start? This email sent to site_archiver@lists.apple.com