From d6bbbd831e655f28551f2bc346fa50fb1605fd0d Mon Sep 17 00:00:00 2001 From: Unitech Date: Fri, 12 Dec 2014 14:10:46 +0100 Subject: [PATCH] add alias pm2 show --- bin/pm2 | 6 ++++++ examples/axm/pid_info.js | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 examples/axm/pid_info.js diff --git a/bin/pm2 b/bin/pm2 index 3f6a6e73..05869f80 100755 --- a/bin/pm2 +++ b/bin/pm2 @@ -407,6 +407,12 @@ commander.command('info ') CLI.describe(proc_id); }); +commander.command('show ') + .description('(alias) describe all parameters of a process id') + .action(function(proc_id) { + CLI.describe(proc_id); + }); + // // List command // diff --git a/examples/axm/pid_info.js b/examples/axm/pid_info.js new file mode 100644 index 00000000..d7516ffb --- /dev/null +++ b/examples/axm/pid_info.js @@ -0,0 +1,2 @@ + +// ps -p 5828 -o pid,vsz=MEMORY -o user,group=GROUP -o comm,args=ARGS