Article View: news.software.nntp
Article #31672Re: processing innfeed-dropped.* files?
From: Ronald Hello
Date: Thu, 24 Sep 1998 00:00
Date: Thu, 24 Sep 1998 00:00
45 lines
1802 bytes
1802 bytes
In article <6ud5ka$dj3$1@krell.snafu.de>,
Bettina Fink <laura@krell.snafu.de> writes:
> Dave Barr <barr@cis.ohio-state.edu> wrote:
>
>> What the preferred way to process innfeed-dropped.* files?
>
> I use filechan -f 2 -d /var/spool/news/innfeed <innfeed-dropped.A012345
I use a perl-script that's run by cron and also handles innfeed!
files when they occur:
#!/Utils/bin/perl
$topdir = "/News/spool/out.going";
chdir($topdir);
rename("innfeed!", "innfeed/innfeed-dropped.RH_NOMATCH") if -f "innfeed!";
chdir("innfeed");
exit 0 unless -s "innfeed.pid";
open(IN, "< innfeed.pid");
$pid = <IN>;
close(IN);
chop $pid;
opendir(DIR, ".");
@files = grep(/^innfeed-dropped/, readdir(DIR));
closedir(DIR);
@files = grep(!/$pid$/, @files);
foreach $file (@files){
if ( -s $file ){
system("/News/bin/procbatch -mu $file");
} else {
unlink $file;
}
}
Works just fine here ...
Ronald.
--
// Ronald Hello (Ronald.Hello@cs.utwente.nl)
// University of Twente
// Department of Computer Science
// The Netherlands
Technical Details
Message-ID:
<6ud6d6$mqr$2@pandora.cs.utwente.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<6uc5o0$qac$1@news.cis.ohio-state.edu> <6ud5ka$dj3$1@krell.snafu.de>Show Full Headers
Complete Article Headers
Message-ID: <6ud6d6$mqr$2@pandora.cs.utwente.nl> Subject: Re: processing innfeed-dropped.* files? Date: Thu, 24 Sep 1998 00:00:00 +0000 From: hello@cs.utwente.nl (Ronald Hello) References: <6uc5o0$qac$1@news.cis.ohio-state.edu> <6ud5ka$dj3$1@krell.snafu.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 394325449 Distribution: world X-Server-Date: 24 Sep 1998 10:20:22 GMT Content-Type: text/plain; charset=us-ascii Organization: University of Twente, Dept. of Computer Science Mime-Version: 1.0 Newsgroups: news.software.nntp