help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Getting PID


From: Danny
Subject: Re: [Help-bash] Getting PID
Date: Mon, 28 Dec 2015 20:59:47 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

Thank You

Danny

On Dec 27 15, Chris F.A. Johnson :
> To: Danny <address@hidden>
> Date: Sun, 27 Dec 2015 16:23:48 -0500 (EST)
> From: "Chris F.A. Johnson" <address@hidden>
> Subject: Re: [Help-bash] Getting PID
> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14)
> 
> On Sun, 27 Dec 2015, Danny wrote:
> 
> >Hi guys,
> >
> >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
> 
> pid=( $(pidof bash) )
> echo "${pid[-1]}"
> 
> -- 
> Chris F.A. Johnson, <http://cfajohnson.com>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]