On Oct 16, 2008, at 2:27 AM, XiaoGang Li wrote:
hi, list,
I have a task that a cmd-line utility should be launched when user
login window on OSX 10.3.9. this cmd-line utility bind to a socket
port and
listen message from low-level server. I means that the cmd-utility
will not
quit until the user logout. acutally, I know I should use launchd
method to
implement this feature in 10.4 or later . but in OSX 10.3.9, I have
encountered some problems.
At first, I planned to use login Items, add item in the
loginwindow.plist in the user's directory. I can add the cmd-line
utility to
the login item list of current user when the user login window. but
one
terminal (console) popup every time. this is a big problem, so
unsatisfied for me, I need it to run as a daemon.
Second, i use the unrecommended way : add a plist file to the path:
/etc/mach_init_per_user.d directory. but it seems not work. what
should i do
anything else?
I am sorry that if i put this mail in a wrong list. Any comments
will
be appreciated. Thanks.
If I'm understanding you correctly, you want to launch a daemon at
login time on 10.3.9?
First, check out TN2083 Daemons and Agents <http://developer.apple.com/technotes/tn2005/tn2083.html
>
If you have further questions, I would recommend either asking on
Darwin-Dev or submitting a tech support incident to [EMAIL PROTECTED]
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]