开发者

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 r开发者_StackOverflowuns in the background and is triggered whenever I run a random application/script/whatever has a system-wide pid.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜