Article View: news.software.readers
Article #12121Re: TRN: Running it NON-interactively
From: Peter J. Kappesser
Date: Wed, 26 Oct 1994 08:29
Date: Wed, 26 Oct 1994 08:29
30 lines
2410 bytes
2410 bytes
Recently in news.software.readers, davison@borland.com (Wayne Davison) wrote: >Run the "trnkill" script included below from cron and it will >enter every subscribed group you have just long enough to run >the kill file, and then exit. I happened to stop by n.s.r ready to ask about something like this, and here it is! I tried it, and the script works great (with a few of my own hacks -- I change DOTDIR, etc. to point to an alternate .newsrc and kill files and I extracted the lines written to the temporary macro file to a .trnmac kept in the alternate news directory.) But -- at this site, at least -- it refuses to run as a cron job! Works fine while I'm logged in, but when I had cron run it with the -d (debug) option, trn was complaining it 'Can't open /dev/tty'. (Obviously, since I'm not on the system when it's run.) Any ideas for a workaround, or is it some quirk of the version or the way it was compiled here? It's trn 3.4. My application is: I have a script which posts daily stats on the usage and load of the computers here. I'd like each day's posting to supersede the previous day's posting -- so I need a way to extract the Message-ID, save it to a file, and use it for the Supersedes: line the next day. The script worked great in test, and I could just run it from my .login, but then I'd have to be sure to log in every day...! -- Pete -- pjkappes@mailbox.syr.edu (Peter Kappesser)
Technical Details
Message-ID:
<38l41u$dr4@newstand.syr.edu>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!nntp.gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!news.dfn.de!Germany.EU.net!EU.net!howland.reston.ans.net!cs.utexas.edu!convex!news.duke.edu!godot.cc.duq.edu!nntp.club.cc.cmu.edu!cantaloupe.srv.cs.cmu.edu!rochester!galileo.cc.rochester.edu!newstand.syr.edu!hydra.syr.edu!pjkappesReferences:
<37fhvf$4cb@oedipa.waste.com> <CxKIy3.5u4@borland.com>Show Full Headers
Complete Article Headers
Message-ID: <38l41u$dr4@newstand.syr.edu> Subject: Re: TRN: Running it NON-interactively Date: Wed, 26 Oct 1994 08:29:50 +0000 From: pjkappes@hydra.syr.edu (Peter J. Kappesser) References: <37fhvf$4cb@oedipa.waste.com> <CxKIy3.5u4@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!nntp.gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!news.dfn.de!Germany.EU.net!EU.net!howland.reston.ans.net!cs.utexas.edu!convex!news.duke.edu!godot.cc.duq.edu!nntp.club.cc.cmu.edu!cantaloupe.srv.cs.cmu.edu!rochester!galileo.cc.rochester.edu!newstand.syr.edu!hydra.syr.edu!pjkappes Newsgroups: news.software.readers Organization: Not Quite Syracuse University, Syracuse, NY Lines: 30 Reply-To: pjkappes@mailbox.syr.edu NNTP-Posting-Host: 128.230.1.33