Thread View: news.software.nntp
3 messages
3 total messages
Started by Rob Borland
Mon, 28 Oct 2002 06:02
Path to filename passed in %s
Author: Rob Borland
Date: Mon, 28 Oct 2002 06:02
Date: Mon, 28 Oct 2002 06:02
34 lines
1910 bytes
1910 bytes
I'm using Red Hat 7.2 with inn-2.3.2-5 and inews-2.3.2-5 rpms installed. I can't access files piped to a program in %s. Following the sample code I have the following test newsfeeds file: ME:*:: capture:*:Tp,Wf:/usr/local/bin/capture %s capture is a test script to cat the file passed in the %s argument. I post a message to a test newsgroup using Pine. The message is correctly posted to the newsgroup and appears in the news spool directory. capture shows that %s passes file names like: @050000000007000000140000000000000000@ but capture reports that the file can't be found. I can't see any options for obtaining the absolute path. I've tried prefixing %s with the news spool directory /var/spool/news, the news temporary directory /var/lib/news/tmp and so forth without success. Earlier versions of inn passed the absolute path to the article file itself in %s, like /var/spool/news/articles/testlocal/123, and this worked very well. How does this version do it? I must be missing something obvious here. Regards, Rob
Re: Path to filename passed in %s
Author: Jeffrey M. Vinocur
Date: Mon, 28 Oct 2002 12:36
Date: Mon, 28 Oct 2002 12:36
12 lines
1245 bytes
1245 bytes
In article <41a5db0c.0210272202.2b0570db@posting.google.com>, Rob Borland <rborland@healthnet.zw> wrote: > > @050000000007000000140000000000000000@ You need to use ~news/bin/sm which will give you the article on stdout. -- Jeffrey M. Vinocur jeff@litech.org
Re: Path to filename passed in %s
Author: Rob Borland
Date: Tue, 29 Oct 2002 09:29
Date: Tue, 29 Oct 2002 09:29
14 lines
1329 bytes
1329 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote in message news:<apjb18$7at$1@puck.litech.org>... > In article <41a5db0c.0210272202.2b0570db@posting.google.com>, > Rob Borland <rborland@healthnet.zw> wrote: > > > > @050000000007000000140000000000000000@ > > You need to use ~news/bin/sm which will give you the article on > stdout. Aha! Thanks for the prompt and helpful advice. Regards, Rob
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