fdadftl
fdadftl

Reputation: 13

How to interact with programs managed by pm2?

After using pm2 to manage and start a program, the program expects me to enter further instructions after performing some tasks. After using pm2 to manage and start this program, how to interact with this program?

thanks a lot.

Upvotes: 0

Views: 561

Answers (2)

Unitech
Unitech

Reputation: 5971

Maybe ´pm2 attach <process_id>´

Upvotes: 2

Halmon
Halmon

Reputation: 1077

Without code I'm not sure what kind of interactions/tasks you are performing. However you can take a look at pm2's process-actions which I think should accomplish what you're looking for

Upvotes: 0

Related Questions