Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: parse error in process substitution



On Mon, Nov 10, 2008 at 02:32:51PM +0000, Peter Stephenson wrote:
> Peter Stephenson wrote:
> > Something like
> >
> >   root-tail-procsub-internal() {
> >     root-tail ${1},$2
> >   }
> >
> >   root-tail-procsub() {
> >     root-tail-procsub-internal <(eval $1) $2
> >   }
> >
> > and then call
> >
> >   root-tail-procsub 'ssh root@xxxxxxxxxxxx tail -F /var/log/kern.log' ,red,
> >
> > or variations.
>
> Actually, come to think of it, there's no obvious gain over the simpler
>
>   root-tail-args() {
>      root-tail ${1},$2
>   }
>
>   root-tail-args <(ssh root@xxxxxxxxxxxx tail -F /var/log/kern.log) ,red,

Thanks for your suggestion Peter. But when invoking root-tail on
several log files (typical usage) it doesn't scale:

root-tail --geometry 1920x1200+0+0 --wordwrap \
~/.xsession-errors,yellow, \
/var/log/syslog,white, \
/var/log/apache2/error.log,orange, \
<(ssh root@xxxxxxxxxxxxxx tail -F /var/log/kern.log),red, \
<(ssh root@xxxxxxxxxxxxxx tail -F /var/log/apache2/error.log),pink, &

etc...

Cheers,

--
http://www.critikart.net



Messages sorted by: Reverse Date, Date, Thread, Author