Article View: news.software.nn
Article #1472Re: nnpost from crontab
From: Eric Feigenson
Date: Fri, 15 Mar 1991 14:30
Date: Fri, 15 Mar 1991 14:30
38 lines
2226 bytes
2226 bytes
rock@warp.Eng.Sun.COM (Bill Petro) writes: >I am having a problem posting automatically from my crontab. >Here is my cron entry: >0 1 14 3 * bin/nnpost -d world -k "" -s "History of St. Patrick" -y "" -f hol/pat -p talk.religion.misc >Here is the error I get back: >Your "cron" job >bin/nnpost -d world -k "" -s "History of St. Patrick" -y "" -f hol/pat >-p talk.religion.misc >produced the following output: >No TERM variable in environment >Any ideas what I'm doing wrong? >-- I had a similar problem when trying to do a "batch" nnpost from inside a shell script that was executed as a mail alias. The problem is that nnpost's startup code wants a TERM variable set in case it wants to do screen painting during its execution. In your case (and mine) you don't need to do screen painting but nnpost still wants TERM set. Not only that, but it also wants TERM set to something smart enough to do the cursor motion it needs. If you put a TERM=vt100 before your bin/nnpost, I think this will work. I have to qualify this by saying that I never was able to get posting in background to work properly with nnpost, and debugging is nearly impossible since everything is going on in background. I suspect there's a simpler way to do "batch" postings than using nnpost, and would love it if someone would post a message pointing the way. I hope this helps. -EricF -- Eric R. Feigenson UUCP: mit-eddie!progress!erf Progress Software Corp. Internet: erf@progress.com 5 Oak Park Bedford, MA 01730
Technical Details
Message-ID:
<1991Mar15.143030.250@progress.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.nn.mbox.zip!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!think.com!linus!progress!erfReferences:
<9847@exodus.Eng.Sun.COM>Show Full Headers
Complete Article Headers
Message-ID: <1991Mar15.143030.250@progress.com> Subject: Re: nnpost from crontab Date: Fri, 15 Mar 1991 14:30:30 +0000 From: erf@progress.COM (Eric Feigenson) References: <9847@exodus.Eng.Sun.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.nn.mbox.zip!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!think.com!linus!progress!erf Newsgroups: news.software.nn Sender: news@progress.com (The News User) Organization: Progress Software Corp., Bedford, MA Lines: 38 Nntp-Posting-Host: ericf