• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: killing background processes with UNIX in cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >killing background processes with UNIX in cocoa? (From: Nathaniel Gottlieb-Graham <email@hidden>)

  • Prev by Date: killing background processes with UNIX in cocoa?
  • Next by Date: Re: insertText: without a NSWindow/NSView (or: Unicode input without NSView/Window)
  • Previous by thread: killing background processes with UNIX in cocoa?
  • Next by thread: Re: killing background processes with UNIX in cocoa?
  • Index(es):
    • Date
    • Thread