From 9a57aa122aaff6ae689b29f97f8bcce01ea3fbbc Mon Sep 17 00:00:00 2001 From: "Zane C. Bowers-Hadley" Date: Wed, 21 Aug 2019 01:34:54 -0500 Subject: [PATCH] module is good and produces nice output... start work on the script --- Proc-ProcessTable-ncps/bin/ncps | 38 +++++++++++++++++++ .../lib/Proc/ProcessTable/ncps.pm | 15 ++++---- 2 files changed, 46 insertions(+), 7 deletions(-) create mode 100755 Proc-ProcessTable-ncps/bin/ncps diff --git a/Proc-ProcessTable-ncps/bin/ncps b/Proc-ProcessTable-ncps/bin/ncps new file mode 100755 index 0000000..444a7ea --- /dev/null +++ b/Proc-ProcessTable-ncps/bin/ncps @@ -0,0 +1,38 @@ +#!/usr/bin/env perl + +use strict; +use warnings; +use Getopt::Long; +use Proc::ProcessTable::ncps; + +sub version{ + print "ncps v. 0.0.0\n"; +} + +sub help{ + print ' + +-z Show zombies procs. +-s Show swapped out procs. + +-p Search procs using the matching regex. + +-u A string search for users. + +-t