Thread View: news.software.nn
4 messages
4 total messages
Started by Bill Petro
Thu, 14 Mar 1991 22:23
nnpost from crontab
Author: Bill Petro
Date: Thu, 14 Mar 1991 22:23
Date: Thu, 14 Mar 1991 22:23
24 lines
1132 bytes
1132 bytes
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?
--
Bill Petro {decwrl,hplabs,ucbvax}!sun!Eng!rock
"UNIX for the sake of the kingdom of heaven" Matthew 19:12
Re: nnpost from crontab
Author: 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
Re: nnpost from crontab
Author: Bill Petro
Date: Fri, 15 Mar 1991 21:25
Date: Fri, 15 Mar 1991 21:25
18 lines
1233 bytes
1233 bytes
erf@progress.COM (Eric Feigenson) writes:
>>I am having a problem posting automatically from my crontab.
>>--
>If you put a TERM=vt100 before your bin/nnpost, I think this will work.
This did the trick. The new crontab entry looks like this:
0 11 15 3 * TERM=vt100 bin/nnpost -d world -k "" -s "History of St. Patrick" -y "" -f hol/pat -p talk.religion.misc
It works fine. Now you can all go over to talk.religion.misc and find
out what this is all about :-)
--
Bill Petro {decwrl,hplabs,ucbvax}!sun!Eng!rock
"UNIX for the sake of the kingdom of heaven" Matthew 19:12
Re: nnpost from crontab
Author: Nick Sayer
Date: Sun, 17 Mar 1991 07:49
Date: Sun, 17 Mar 1991 07:49
28 lines
1877 bytes
1877 bytes
erf@progress.COM (Eric Feigenson) writes: >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. quack% inews -h << EOF Newsgroups: misc.test Subject: This is a test. The -h flag to inews tells it to accept a message to be posted with header stuff from stdin. You don't have to specify all the headers, just the mandatory ones. Missing headers like Message-ID and From will be filled in appropriately. I do this sort of thing on a daily basis when I post the credits in alt.tv.tiny-toon. I have a standard file with some headers at the top, a blank line, then fill in the crap as needed. Be sure to leave out your .sig -- inews will take care of that. EOF -- Nick Sayer | Think of me as a recombinant | RIP: Mel Blanc mrapple@quack.sac.ca.us | Simpson: Homer's looks, Lisa's | 1908-1989 N6QQQ [44.2.1.17] | brains, Bart's manners, and | May he never 209-952-5347 (Telebit) | Maggie's appetite for TV. --Me | be silenced.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads