[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Getting PID
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Getting PID |
Date: |
Tue, 29 Dec 2015 07:43:44 -0500 |
User-agent: |
Mutt/1.4.2.3i |
On Sun, Dec 27, 2015 at 11:17:06AM +0200, Danny wrote:
> I have an application that returns 3 PID's when I do "pidof" ... how would I
> get
> only the last PID returned ...
>
> address@hidden:pidof application
> 47223 47229 48101
What makes you think the last PID is the one you want to use in your
script? How would your script act in this case:
address@hidden: pidof application
14 32765 32767