arlowhite / process-watcher

Watch Linux processes by polling /proc and notify via email or desktop notification when they complete.
MIT License
127 stars 32 forks source link

Proc not available on macOS – consider psutil #6

Open jrmedd opened 3 years ago

jrmedd commented 3 years ago

I arrived at this repo via Stack Overflow. While I'm aware it's a good few years old, I figure I'm not the only one who'll land here.

Currently, process-watcher gets its list of pids from /proc. Given that /proc is unavailable on macOS, I'd suggest psutil as as good cross-platform alternative.

Example of its usefulness: psutil.pid_exists(12345)

I've been looking to extend process-watcher with support for Pushover so I may do this myself and submit a pull request, if I find time.

Thanks for sharing.

arlowhite commented 3 years ago

@jrmedd Thanks, I haven't worked on this project in a long time, if you're interested in maintaining it I could transfer it to you.