So sprach »Ryan Cook« am 2001-08-25 um 06:54:17 -0700 :
> On Sat, Aug 25, 2001 at 11:30:50AM +0200, Alexander Skwar wrote:
> > Uptime: 0 hours 54 minutes
>
> What I'd like to know is how folks output their kernel version and
> system uptime in their .sig?
Dunno how "folks" do this :), but I do this like follows. In my muttrc,
I've set:
set signature="~/bin/signature.sh ~/.signature|"
~/bin/signature.sh looks like this:
#!/bin/sh
SIG=$1
echo -e "$(cat ${SIG})\\n\\t\\t$(linux_logo -g -a -F '#U'|sed 's| *\(Uptime\)|\1:|')"
linux_logo -g -a -F '#U' prints:
Uptime 5 hours 37 minutes
You can also use uptime with some "clever" regexp.
Now, for MUAs which do not support the signature to be the output of
some program, you can create a cron job which runs every minute and
writes a new .signature every time
For my header entry, I've got:
my_hdr X-Operating-System: An `uname -m` `uname -s` with Kernel v`uname -r`
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.digitalprojects.com | http://www.iso-top.de
iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 5 hours 36 minutes