• 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: check if process is running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: check if process is running


  • Subject: Re: check if process is running
  • From: Mike Davis <email@hidden>
  • Date: Sat, 24 May 2003 17:24:44 +0100

On Saturday, May 24, 2003, at 12:12 pm, email@hidden wrote:

Date: Sat, 24 May 2003 11:22:31 +0200
Subject: Re: check if process is running
From: Martin Weil <email@hidden>
To: email@hidden

I get back a:
"Error opening terminal: unknown."

when launching the NSTask. Why is that?

Best Regards
Martin


Am Mittwoch, 21.05.03 um 17:39 Uhr schrieb Mathew Peterson:

I would recommend an NSTask on top or ps to get a list of all running
processes and then check against that.

I'd use sysctl() with CTL_KERN, KERN_PROC and KERN_PROC_ALL. I'd then iterate over the array of struct proc you get back.



Mat

On Wednesday, May 21, 2003, at 08:42AM, Martin Weil <email@hidden>
wrote:

Hi!

I'd like to check if one particular process is running. I looked at
NSWorkspace' launchedApplications, but as said only Applications
no deamons and other GUI less processes are shown.

Best Regards
Martin

-
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Localization and bugs in the Finder
  • Next by Date: Re: NSDrawer, NSOutlineView problem
  • Previous by thread: Re: check if process is running
  • Next by thread: Multiple Targets in Project Builder
  • Index(es):
    • Date
    • Thread