Re: [dev] [Tabbed] Capturing new browser instances

From: Jason Ryan <jasonwryan_AT_gmail.com>
Date: Fri, 24 Jun 2011 11:39:42 +1200

On 24/06/11 at 12:20am, Connor Lane Smith wrote:
> On 24 June 2011 00:13, Jason Ryan <jasonwryan_AT_gmail.com> wrote:
> > That's sort of what I was trying to do with a script using pgrep to identify
> > tabbed and hitch it to that -- or so I thought...
>
> It would be easier just to use an XID file (analogous to a PID file):
>
> $ tabbed -d > /tmp/tabbed.xid
> $ vimprobable2 -e `cat /tmp/tabbed.xid`
>
> You could check the XID exists and if not spawn a new tabbed, and so on.
>
Superb! Thanks for the pointer: that works nicely.

/J

-- 
Jason Ryan
http://jasonwryan.com/
Received on Fri Jun 24 2011 - 01:39:42 CEST

This archive was generated by hypermail 2.2.0 : Fri Jun 24 2011 - 01:48:03 CEST