Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: parse error in process substitution
- X-seq: zsh-users 13443
- From: Louis-David Mitterrand <vindex+lists-zsh-users@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: parse error in process substitution
- Date: Mon, 10 Nov 2008 15:42:59 +0100
- In-reply-to: <200811101432.mAAEWpqO020091@xxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20081106150224.GA10992@xxxxxxxxxx> <081106082517.ZM27477@xxxxxxxxxxxxxxxxxxxxxx> <20081110082152.GA9563@xxxxxxxxxx> <20081110142850.0add2680@news01> <200811101432.mAAEWpqO020091@xxxxxxxxxxxxxx>
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