shevron
shevron

Reputation: 280

Monitor starting/running/ending apps within node.js

Is there a way to monitor starting/running/ending apps within node.js?

Like "You just started LibreOffice Writer!". It would be nice if any of you cracks could help me with this.

Edit: I am searching for something that runs in the background and is triggered whenever I run a random application/script/whatever has a system-wide pid.

Upvotes: 1

Views: 534

Answers (1)

Clueless
Clueless

Reputation: 4042

forever is a daemon manager for node.js that can do this.

http://thechangelog.com/post/6637623247/forever-node-js-daemon-manager

https://github.com/indexzero/forever

Or if you just want to start a process once and be able to manage it, you can use the builtin ChildProcess.

http://nodejs.org/docs/v0.4.9/api/child_processes.html

Upvotes: 3

Related Questions