Re: piping messages to external scripts
- To: mutt-users@xxxxxxxx
- Subject: Re: piping messages to external scripts
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Wed, 19 Mar 2008 17:22:28 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date: from:to:subject:message-id:references:mime-version:content-type: in-reply-to; q=dns/txt; s=default; bh=4b3jrCVnfu1eQ9fCB7mcxV5yKU E=; b=g6QbQJqqkvqIbyropiHY25ygYNfZr/ze9anQvpUYCLCXFGV5f3Og7aQ/3e l4nwuqDPsH/RNEaoPWMAXMwEhYaC1433f2XDOsMB8mqMDK+27UQFc2FuptEisjFl AgzF9BUuklrFWobpSs5KeIm07JfNkROnDnyj0Dig2oLtqAhsM=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=QUXe9s8YBM4NIaZd411sjultMp5/HA0fRQ/ABmdD8r3G91D7kFjQwxZyO+ndYMfLEQIOX0AzL/ycCrFsaKcCKqKDgYkDiuKxsXqEC9FQI2TKhHN0veaDHz7nCjU/FsOBQmxPVGCeRk8gIgO9h6CvB1n44ToYfv1kIGhidmHlJgs=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20080319220855.GK705@xxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20080319212243.GA9033@pcbsd> <20080319220855.GK705@xxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.17 (2008-02-27)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday, March 19 at 05:08 PM, quoth Kyle Wheeler:
> Eh? The new process remains in control of the terminal as long as it
> wants (i.e. it can't give up control at any point). Here's the thing,
> though: when you pipe a message to a script, you're filling the
> standard input with the *message*. If you use typical shell prompting
> mechanisms, they'll all try to pull from standard input, which will
> either be the message or will be *closed* because you already slurped
> it up with something. So, you can't use standard input.
What I meant to add here, but forgot, is that if you DO use standard
input, it will appear as though your script ran very quickly and then
lost control of the terminal.
~Kyle
- --
Necessity is the plea for every infringement of human freedom. It is
the argument of tyrants; it is the creed of slaves.
-- William Pitt the Younger
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkfhkiQACgkQBkIOoMqOI1538wCaAk4uFWmws+Rgr2Up5xCAWeU8
WGYAnjdb/evOeIY7Xz8NOWXnuU9ojpPz
=Tmjv
-----END PGP SIGNATURE-----