Article View: news.software.nn
Article #7630Re: What is the right way to invoke a Unix command in perl script?
From: Gerben Vos
Date: Thu, 23 May 1996 00:00
Date: Thu, 23 May 1996 00:00
28 lines
1953 bytes
1953 bytes
Tom Christiansen writes in comp.lang.perl:
>How disturbing. I got an email cc that wasn't marked as also
>being posted publicly, so I took the time to respond privately,
>not realizing it would come up again in the newsgroup. Your
>newsreader, if not broken, is certainly suboptimal in its handling
>of this. Of course, it's not your fault, beasue you don't know better.
I don't know what the original posted uses, but it may be nn.
Your complaint inspired me to patch my "nnaux" file to do exactly this.
Change line 289 (or nearby, where it handles cc) from
sed -e "s/^To:/X-To:/" -e "/^Orig-To:/d" $WORK >> $FINAL
to
sed -e "s/^To:/X-To:/" -e "/^Orig-To:/d" $WORK |perl -pe '?^$? && print "\n[courtesy copy of posted news article]\n"' >> $FINAL
I don't know enough sed to make this work without Perl, so for the
news.software.nn readers: you'll need Perl for this.
[Shpx gur Pbzzhavpngvbaf Qrprapl Npg] . . . . . . . . G e r b e n V o s <><
mailto:gerben@cs.vu.nl http://www.cs.vu.nl/%7Egerben/
Be conservative in what you send and liberal in what you accept.
-- RFC 791, paraphrased
Technical Details
Message-ID:
<Druo3C.I58.0.-s@cs.vu.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mailReferences:
<4ntncd$m41@client3.news.psi.net> <4ntqmj$k09@csnews.cs.colorado.edu> <4nv88f$rmu@news.service.uci.edu> <4nvcl6$gb@csnews.cs.colorado.edu>Show Full Headers
Complete Article Headers
Message-ID: <Druo3C.I58.0.-s@cs.vu.nl> Subject: Re: What is the right way to invoke a Unix command in perl script? Date: Thu, 23 May 1996 00:00:00 +0000 From: gerben@cs.vu.nl (Gerben Vos) References: <4ntncd$m41@client3.news.psi.net> <4ntqmj$k09@csnews.cs.colorado.edu> <4nv88f$rmu@news.service.uci.edu> <4nvcl6$gb@csnews.cs.colorado.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail X-Deja-AN: 156271699 Sender: news@cs.vu.nl Organization: Fac. Wiskunde & Informatica, VU, Amsterdam Newsgroups: comp.lang.perl.misc,news.software.nn