in reply to Help to monitor a PID

Let's say I have a process called 'abc'. The command:  pgrep -f 'abc' returns: 3184 A character dump (on Linux):  pgrep -f 'abc' | od -c shows:
0000000 3 1 8 4 \n 0000005
Spot the trailing new-line. To scrap the newline, read the Learning Perl article on Using Backquotes to Capture Output.

Replies are listed 'Best First'.
Re^2: Help to monitor a PID
by lsvolo (Novice) on Sep 13, 2016 at 10:08 UTC
    Hi gods, Thank you for the reply and the link. I have used chomp to resolve the print outcome. Can you or someone also assist on my second question? Regards