Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2 problems.




On Jan 3, 2005, at 0:11, D.Walsh wrote:
I have the following shell script, valid values for VALUE are '-YES-' or '-NO-'
<shell script snipped>
I need to duplicate this process in a binary application (made in XCode)

Why? Are you aware that you can bundle a shell script inside an application and (with certain caveats) call it programmatically? My knowledge of shell scripting is limited, but I would think that implementing your script to Objective-C (or C, or whatever) would be much more involved than in shell.


How do I determine if an application/daemon is running, the app/daemon has a pid and a socket file, if you have some source code for this I'd appreciate it.

I'm not sure I understand this... can't say as I'm real well up on UNIX, but if it has a PID, doesn't that mean it *is* running? Can you be a bit more specific?


- David

--
David Reed | email@hidden | AIM/iChat: parmadil01

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >2 problems. (From: "D.Walsh" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.