1. innd feeds news articles
hi all,
I want to feed some news from my ISP news server to my innd server.
I can post an article to my innd by using netscape, but
when i do ihave I got:
NNTPERROR: 480 Transfer permission denied
Article rejected: Transfer permission denied
Any step by step guide?
Thanks
Lam
I use the following perl script to feed news
#!/usr/bin/perl -w
use News::NNTPClient;
use strict;
$main::target='192.168.0.1'; #my local innd server
$main::source='news.netvigator.com'; #my isp news server
groups
main: {
my ( $s, #source nntp object
$t, #target nntp object
$retn,
$first, $last,
$lfirst, $llast, #local first and last
$i,
);
$s=new News::NNTPClient($main::source, $main::port);
$t=new News::NNTPClient($main::target, $main::port);
#check all groups in feedgroups exist in both source and target server
for ($i=0;$i<$#main::feedgroups+1;$i++) {
#set source/target to group in feedgroups
($lfirst, $llast)=$t->group($main::feedgroups[$i]);
$llast++;
if ($#ret == 1) {
print "first = $first\t last = $last\n";
for ($i=$last;$i>$first;$i--) {
print "doing article $i\n";
print "doing ihave $lfirst\n"; #should I follow the article
number in remote or in local?
if ($retn) {
print "Article $i transfered\n";
$llast++;
}
else {
print "Article rejected: ", $t->message, "\n";
}
}
else {
print "skipping $i\n";
}
}
}
else {
#get first-last or false
if ($ret[0]) {
#do split first and last
}
}
}
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
2. ICQ Client ?
3. getting my innd server fed, through ppp
4. Soundblaster and FAQ?
5. Linux Innd won't post to remote feed
6. How do you update libc?
7. AIX 5L feeding bad/no/wrong headers to Apache
8. how to mount floppy w/o mntflop?
9. Headers, Headers, whos got the Headers
10. Restricting Path for users.
11. add in the PATH a path if not present in the PATH
12. ksh: add path to $PATH only when ot yet in $PATH
13. zsh's 'typeset -U path' wipes out path/PATH