Article View: news.software.readers
Article #70757Re: slrn - shell command in custom_headers
From: Emmanuele Bassi
Date: Thu, 18 Jan 2001 20:22
Date: Thu, 18 Jan 2001 20:22
50 lines
2475 bytes
2475 bytes
On 18 Jan 2001 16:50:16 GMT,
Neuromancer (Please@nlyReplyTo.Group)
wrote:
> I searched everywhere with no luck. What I need to do is have slrn drop
> the output of a shell command into a custom header. For example, uname -a.
For uname (a-la-Tin) in the User-Agent header, there's this patch:
#v+
*** slrn-0.9.6.3++/src/version.c Thu Jan 18 21:01:19 2001
--- slrn-0.9.6.3.orig/src/version.c Mon Sep 18 00:35:24 2000
***************
*** 164,179 ****
# ifdef HAVE_UNAME
static struct utsname u;
! static char s[20];
! /* We make a little modification of the output: no more only ``Linux'',
! * but a string like this ``Linux/kernel.ver (machine)'', directly by
! * using uname(2).
! */
! if (-1 != uname (&u)) {
! sprintf(s, "%s/%s (%s)", u.sysname, u.release, u.machine);
! return (s);
! }
!
# endif
return "Unix";
}
--- 164,171 ----
# ifdef HAVE_UNAME
static struct utsname u;
! if (-1 != uname (&u))
! return u.sysname;
# endif
return "Unix";
}
#v-
--
Emmanuele Bassi | Linux: [ http://digilander.iol.it/ebassi/linux/ ]
| SLRN: [ http://digilander.iol.it/ebassi/slrn/ ]
emmanuele.bassi@iol.it | SETI: [ http://digilander.iol.it/ebassi/seti/ ]
GnuPG Key Fingerprint: 9747 635E B95A B0B3 4370 1CAA CAF7 512B 945C A44C
Technical Details
Message-ID:
<slrn96eius.1it.zefram@wolverine.lohacker.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!nntp.infostrada.it!news.infostrada.it!not-for-mailReferences:
<slrn96e7m7.sk.neuromancer@HAL-9000.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn96eius.1it.zefram@wolverine.lohacker.net> Subject: Re: slrn - shell command in custom_headers Date: Thu, 18 Jan 2001 20:22:47 GMT From: zefram@wolverine.lohacker.net (Emmanuele Bassi) References: <slrn96e7m7.sk.neuromancer@HAL-9000.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!nntp.infostrada.it!news.infostrada.it!not-for-mail Newsgroups: news.software.readers Lines: 49 Reply-To: emmanuele.bassi@iol.it X-newsgroup: news.software.readers Mail-Copies-To: zefram@libero.it User-Agent: slrn/0.9.6.3++ (Linux/2.4.0-test11 (i586)) NNTP-Posting-Host: 151.33.118.237 X-Complaints-To: abuse@iol.it X-Trace: news.infostrada.it 979849367 151.33.118.237 (Thu, 18 Jan 2001 21:22:47 MET) NNTP-Posting-Date: Thu, 18 Jan 2001 21:22:47 MET Organization: [Infostrada]