How to check if an arbitrary PID is running using Node.js?

后端 未结 3 1198
没有蜡笔的小新
没有蜡笔的小新 2021-01-07 18:30

Is there some way to check if an arbitrary PID is running or alive on the system, using Node.js? Assume that the Node.js script has the appropriate permissions to read

3条回答
  •  暖寄归人
    2021-01-07 19:23

    I'm not an expert here, but could you not spawn a child process to check the status with a command line tool?

提交回复
热议问题