From: Joan Picanyol i Puig <lists-supervision@biaix.org>
To: supervision@list.skarnet.org
Subject: Re: redirection tricks on processor invocation
Date: Wed, 3 Jun 2009 12:31:01 +0200 [thread overview]
Message-ID: <20090603103101.GA26521@grummit.biaix.org> (raw)
In-Reply-To: <20090603062658.GB5167@skarnet.org>
* Laurent Bercot <ska-supervision@skarnet.org> [20090603 08:27]:
> > In summary, I want a copy of my processor's stdin to be seen by svlogd
> > as my processor's stdout. Any ideas?
>
> Use multitee: http://code.dogmap.org/fdtools/multitee/
>
> Your processor could be, for instance, if you have execline installed:
> exec execlineb -c "
> piperw 6 7
> background { fdclose 7 fdmove 0 6 yourapplication }
> fdclose 6
> multitee 0-1,7
> "
>
> which copies stdin to stdout untouched, but also feeds a copy of
> stdin to yourapplication's stdin.
That's exactly what I want. Given that piperw apparently has no shell
equivalent without a named pipe I guess it's time for me to bite the
bullet and just use skalibs.
tks
--
pica
next prev parent reply other threads:[~2009-06-03 10:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-02 10:48 Joan Picanyol i Puig
2009-06-03 6:26 ` Laurent Bercot
2009-06-03 10:31 ` Joan Picanyol i Puig [this message]
2009-06-03 10:38 ` Joan Picanyol i Puig
2009-06-12 11:48 ` Joan Picanyol i Puig
2009-06-13 5:13 ` Laurent Bercot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090603103101.GA26521@grummit.biaix.org \
--to=lists-supervision@biaix.org \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).