🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by Zheng Zhang Thu, 22 Sep 1994 17:15
nnpost problem
#6435
Author: Zheng Zhang
Date: Thu, 22 Sep 1994 17:15
21 lines
1249 bytes
Hi:

Have anyone encounter the problem of:

nnpost: nn has not been invoked to initialize user files

What I am trying to do is to filter out certain mail with ELM's
filter function and call nnpost to cross post it to a related
newsgroup. It never did it. The filter file of elm looks like:

if (from contains "donkey") then ececute "cat - > /tmp/post; /myhome/topost"

the topost script simply call:

/usr/local/bin/nnpost -s "auto-post-test" -k "test" -d world -f /tmp/post -p uic.test >&! /tmp/post_result

and the error message showed up in the post_result.

Any suggestion will be very very welcom. Thanks.

-zheng
Re: nnpost problem
#6440
Author: Dave Wolfe
Date: Fri, 23 Sep 1994 17:44
37 lines
2292 bytes
In <35se3b$t72@vixen.cso.uiuc.edu> zz13352@cesn12.cen.uiuc.edu (Zheng Zhang) writes:

>Have anyone encounter the problem of:

>nnpost: nn has not been invoked to initialize user files

>What I am trying to do is to filter out certain mail with ELM's
>filter function and call nnpost to cross post it to a related
>newsgroup. It never did it. The filter file of elm looks like:

>if (from contains "donkey") then ececute "cat - > /tmp/post; /myhome/topost"

>the topost script simply call:

>/usr/local/bin/nnpost -s "auto-post-test" -k "test" -d world -f /tmp/post -p uic.test >&! /tmp/post_result

>and the error message showed up in the post_result.

Since I don't use filter, I'm not completely sure of all the nuances,
but I do know that it doesn't run your script with a full environment
(as evidenced by the need to use full pathnames). You're getting this
message from nnpost when the call to init_global() returns -1, which it
does when it can't find the $HOME/.nn directory. Since it doesn't
complain that $HOME (the environment variable) doesn't exist, that must
be set, but the question is, "To what?". Try dumping the environment in
your script to see what's going on.

Another possibility is that the script isn't run under your uid and no
one else has permissions on your .nn directory.

I cross-posted this to comp.mail.elm, so maybe someone more versed in
filter can give you a more definitive analysis.

-- 
 Dave Wolfe   | 6501 William Cannon Dr. W. | (512) 891-3246
 Motorola SPS | Austin, TX  78735-8598     | dwolfe@pets.sps.mot.com
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