Hello, (Hope my Highlander quote is correct...

)
I'd like to make a script (will be executed from the K bar) which checks whether konsole is already running, if it is it creates a new tab using:
dcop `dcop|grep konsole|head -n 1` default newSession
(I'd like to thank 'grepper' from irc for this) 
otherwise it opens a new konsole.
I don't know how to use what grep returns if it doesn't find anything.
Thanks,
Balalclava BoB