471,337 Members | 813 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Finding out what other tasks are running

Is there a cross-platform of determining what other processes (or in Windows
terms, other applications) are running?

Is it possible in a cross-platform way to ask some other application to shut
down, wait a while, and then test to see if it did shut?

Failing that are there separate Windows, Mac and Linux/Unix ways of doing
this?

--
Jeremy C B Nicoll - my opinions are my own.
Nov 23 '07 #1
3 1518
Jeremy C B Nicoll wrote:
Is there a cross-platform of determining what other processes (or in Windows
terms, other applications) are running?

Is it possible in a cross-platform way to ask some other application to shut
down, wait a while, and then test to see if it did shut?

Failing that are there separate Windows, Mac and Linux/Unix ways of doing
this?
Sorry, thought I'd part-answered this a while back; doesn't seem
to have shown up. In short, I don't believe there's anything
truly x-platform. On Windows, one approach is WMI. Here's an
example:

http://tgolden.sc.sabren.com/python/...ning_processes

There are other techniques, such as querying the top-level
windows or using the performance objects from the pywin32
modules.

TJG
Nov 23 '07 #2
Jeremy C B Nicoll wrote:
Is there a cross-platform of determining what other processes (or in
Windows
terms, other applications) are running?

Is it possible in a cross-platform way to ask some other application
to shut
down, wait a while, and then test to see if it did shut?

Failing that are there separate Windows, Mac and Linux/Unix ways of doing
this?
Ah. Just realised: you're the chap who asked on the PyUK list.
Didn't really give a detailed answer there, did I? Sorry. For
*nix, have a look at Chris Miles' PSI. (Another Londoner like me).

http://www.psychofx.com/psi/trac/wiki/

TJG

Nov 23 '07 #3
Tim Golden wrote:
Jeremy C B Nicoll wrote:
>Is there a cross-platform of determining what other processes (or in Windows
terms, other applications) are running?

Is it possible in a cross-platform way to ask some other application to shut
down, wait a while, and then test to see if it did shut?

Failing that are there separate Windows, Mac and Linux/Unix ways of doing
this?

Sorry, thought I'd part-answered this a while back; doesn't seem
to have shown up. In short, I don't believe there's anything
truly x-platform...
.... or I could eat my words and point you towards Christian Heimes
enumprocess package:

http://cheeseshop.python.org/pypi/enumprocess

TJG
Nov 23 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Greg Bryant | last post: by
220 posts views Thread by Brandon J. Van Every | last post: by
3 posts views Thread by Tim | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.