Article View: news.software.readers
Article #127350Re: slrn - Will it show uptime like Mutt?
From: Crashdamage
Date: Sun, 29 Jun 2003 22:49
Date: Sun, 29 Jun 2003 22:49
44 lines
2661 bytes
2661 bytes
Matt, you posted this while I was writing my last reply...
On Sun, 29 Jun 2003 21:56:18 GMT, Matt H <nntp@cox.net> wrote:
>>> While strolling through news.software.readers, Crashdamage was overheard
>>> plotting:
>>> french. Place that script in a file called
>>> uptime.sl and interpret it in your slrnrc.
>>
>> OK, I'd already done that and yeah it works, but it trashes my
>>
>> "X-Newsreader SLRN 0.9.7.4 (Linux)"
>
> This because it completely overwrites 'custom_headers', at the end of this
>post.
Yeah, I figured that out pretty quick...
> I have included a fixed version of hooks.sl that will keep any previous value
> of custom_headers and only add the uptime to it.
Many thanks! I've copied it and I'll try it in a little while.
>> header line when I use it. Also, I can't figure how to add my entire
>> uptime command including the sed command to strip out extra info (this
>> actually is a line I ripped off Sven Guckes' muttrc):
>>
>> "`uptime | sed -e 's/.*up \([^,]*\),.*/\1/'`"
>>
>> I added it to the command line like this:
>>
>> uptime="";
>> cmd = sprintf("uptime | sed -e 's/.*up \([^,]*\),.*/\1/'" );
>>
>> and I thought that would do it, but it gets ignored and still puts the
>> whole verbose "uptime" command in the header.
>
> Can you try putting the `uptime | sed -e 's/.*up \([^,]*\),.*/\1/'` into a shell
> script and then executing the script instead of the uptime command? I think that
> would proabably work.
Well, I'm afraid this noob needs a little more instruction on just how
to do that...
Technical Details
Message-ID:
<e7ce5d9f9257acfaccfe0ec9ad6d15ba@free.teranews.com>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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!free.teranews.com!not-for-mailReferences:
<5b5d4e99f7010bc79d6f175b05231f5a@free.teranews.com> <slrnbfrlo2.aia.mark_usenet@bubble.markhill.me.uk> <2c8b5b5781cd49e472818395d8a46aa5@free.teranews.com> <k0j1t-m62.ln1@news.gates_of_hell.INVALID> <0f3aae932af5b69aaae9ca9cab521c94@free.teranews.com> <slrnbfuo41.ci4.nntp@distraction.ath.cx>Show Full Headers
Complete Article Headers
Message-ID: <e7ce5d9f9257acfaccfe0ec9ad6d15ba@free.teranews.com> Subject: Re: slrn - Will it show uptime like Mutt? Date: Sun, 29 Jun 2003 22:49:09 GMT From: Crashdamage <tmeador@nospam.invalid> References: <5b5d4e99f7010bc79d6f175b05231f5a@free.teranews.com> <slrnbfrlo2.aia.mark_usenet@bubble.markhill.me.uk> <2c8b5b5781cd49e472818395d8a46aa5@free.teranews.com> <k0j1t-m62.ln1@news.gates_of_hell.INVALID> <0f3aae932af5b69aaae9ca9cab521c94@free.teranews.com> <slrnbfuo41.ci4.nntp@distraction.ath.cx> 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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!free.teranews.com!not-for-mail X-Abuse-Report: abuse@teranews.com Lines: 43 Newsgroups: news.software.readers X-Newsreader: SLRN 0.9.7.4 (Linux) User-Agent: slrn/0.9.7.4 (Linux)