[Konsole-devel] pid of new konsole

Philip Rhoades phil at pricom.com.au
Sun Oct 1 02:39:59 UTC 2006


Kurt,


On Sat, 2006-09-30 at 13:24 -0400, Kurt Hindenburg wrote:
> On Saturday 30 September 2006 12:56, Philip Rhoades wrote:
> | 	dcop konsole*
> |
> | but how do I find the kpid of the most recently started konsole?
> 
> I don't know of anyway to do this.  The pids can't really be used since they 
> will roll-over.
>   Kurt


I found this does what I want and I can get the result into a script and
use the last line:

	ps ax --sort=etime | grep konsole | sed '/grep/d'

Phil.
-- 
Philip Rhoades

Pricom Pty Limited  (ACN 003 252 275  ABN 91 003 252 275)
GPO Box 3411
Sydney NSW      2001
Australia
Mobile:  +61:(0)411-185-652
Fax:     +61:(0)2-8221-9599
E-mail:  phil at pricom.com.au





More information about the konsole-devel mailing list