Re: killing background processes with UNIX in cocoa?
Re: killing background processes with UNIX in cocoa?
- Subject: Re: killing background processes with UNIX in cocoa?
- From: Sam Stigler <email@hidden>
- Date: Wed, 30 Jan 2008 23:24:32 -0800
Check out NSTask. There's also NSProcessInfo, but that will only give
you information about the process you're calling it from; as well as
various other tidbits.
-Sam
Begin forwarded message:
From: Nathaniel Gottlieb-Graham <email@hidden>
Date: January 30, 2008 10:44:57 PM PST
To: email@hidden
Subject: killing background processes with UNIX in cocoa?
I'm probably being really stupid here, how in Cocoa do you run UNIX
commands? I'm re-writing a hacked-together applescript I made once
into an actual application, and at once point, it uses "do shell
script". This seems slightly kludgy, so is there always a better
solution? What I want to do is kill a specific background process
and than restart it.
Thanks,
Nathaniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden