pm2-logs-attach-input
v0.0.7
Published
A PM2 module to send message to stdin of processes in `pm2 logs`
Downloads
13
Readme
pm2-logs-attach-input
A workaround to send messages to processes in pm2 logs.
This script is similar to pm2 logs, but its stdin is open.
This repo has the same functionality as pm2 logs --attach-input. While it is not merged into pm2 yet.
Example:
$ pm2-logs-attach-input # We could send message to stdin of processes in `pm2 logs`. Below is an example to send "Lorem Ipsum" to process 0.
> 0 Lorem IpsumUsage:
pm2-logs-attach-input [id|name|namespace] [options]Options:
-h, --help show this help message
--raw raw output
--err only shows error output
--out only shows standard output
--lines <n> output the last N lines, instead of the last 15 by default
--timestamp [format] add timestamps (default format YYYY-MM-DD-HH:mm:ss)
--highlight [value] highlights the given valueContributor
How could I contribute?
Issue and Pull-requests are both welcomed.
License
Apache 2.0 © qwertycxz
