I managed to work around with this:
tmux pipe-pane -t :1 'sed -n "/build finished/{p;q}" > /tmp/wait'
while [ ! -s /tmp/wait ] ; do sleep 1 ; done
tmux pipe-pane -t :1
so I'll just roll with that and move on.
--Dave
On Wed, May 4, 2011 at 11:00 AM, Nicholas Marriott <
nicholas.marri...@gmail.com> wrote:
> Hi
>
> No there isn't a way to do it now.
>
> I don't really have an opinion on the best way to do it.
>
> Maybe it would be nicer to have a monitor-activity-command option? Not
> sure this would achieve what you want though.
>
> Maybe I should finally get back to the hooks stuff and it would make it
> easier to do this.
>
>
>
> On Wed, May 04, 2011 at 10:54:20AM -0700, Dave Disser wrote:
> > Is there a way to monitor for activity or content in a script? *I'd
> like
> > to be able to script 'expect'-like behavior like this:
> > tmux send-keys -t :1 make
> > tmux wait-content -t :1 "build finished"
> > If there's no way to do this with current functionality I might
> consider
> > implementing it.
> > --Dave
>
> >
> ------------------------------------------------------------------------------
> > WhatsUp Gold - Download Free Network Management Software
> > The most intuitive, comprehensive, and cost-effective network
> > management toolset available today. Delivers lowest initial
> > acquisition cost and overall TCO of any competing solution.
> > http://p.sf.net/sfu/whatsupgold-sd
>
> > _______________________________________________
> > tmux-users mailing list
> > tmux-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/tmux-users
>
>
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users