Article View: news.software.readers
Article #12667Re: TRN: Running it NON-interactively
From: Wayne Davison
Date: Sat, 12 Nov 1994 00:32
Date: Sat, 12 Nov 1994 00:32
44 lines
2251 bytes
2251 bytes
According to R.K. Stephenson <rks@universe.digex.net>: > I have a hacked copy of the trnkill script that doesn't work and was > hoping someone could send me the original. Trn 3.6 will include the trnkill script as part of the distribution. (FYI, the dying-in-cron bug that some systems have experienced is fixed in 3.6 as well.) I've appended the script to the end of this message as well. > While I'm asking - does/will it work with a global kill file? Sure does. You can even point trn at a custom set of kill files just for your cron job if you like using the KILLLOCAL and KILLGLOBAL environment variables. It's very flexiable. -- Wayne Davison davison@borland.com ---8<------8<------8<------8<---cut here--->8------>8------>8------>8--- #!/bin/sh # trnkill - shell script to apply trn KILL files in the background # 14 Mar 89 created for rn by Jim Olsen <olsen@XN.LL.MIT.EDU> # 10 Sep 93 modified for trn 3 (or 2) by Wayne Davison <davison@borland.com> # Options: -d debug mode -- you see all gory action as it happens. # Visit all newsgroups (if trn asks about anything else, just say no) export TRNINIT TRNMACRO RNMACRO TRNINIT='-q -s -T -t -x +X' TRNMACRO=/tmp/trnkill$$ # support for trn 2.x RNMACRO=$TRNMACRO trap 'rm -f $TRNMACRO; exit' 1 2 3 15 cat >$TRNMACRO <<'EOF' z %(%m=[nf]?.q^J:n)^(z^) ^m ^(z^) ^j ^(z^) EOF if test X$1 = X-d; then echo "z" | trn else echo "z" | trn >/dev/null 2>&1 fi rm -f $TRNMACRO exit 0 ---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Technical Details
Message-ID:
<Cz4pHr.M64@borland.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!olivea!news.hal.COM!decwrl!borland.com!davisonReferences:
<37fhvf$4cb@oedipa.waste.com> <CxKIy3.5u4@borland.com> <38l41u$dr4@newstand.syr.edu> <39sn01$77a@news1.digex.net>Show Full Headers
Complete Article Headers
Message-ID: <Cz4pHr.M64@borland.com> Subject: Re: TRN: Running it NON-interactively Date: Sat, 12 Nov 1994 00:32:14 GMT From: davison@borland.com (Wayne Davison) References: <37fhvf$4cb@oedipa.waste.com> <CxKIy3.5u4@borland.com> <38l41u$dr4@newstand.syr.edu> <39sn01$77a@news1.digex.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!olivea!news.hal.COM!decwrl!borland.com!davison Newsgroups: news.software.readers Organization: Borland International Lines: 44