I have a line in my ~/.muttrc that goes in and adds that to the end of
my signature. There are various ways to do this, but here's how I do
it.
set signature='cat /home/timh/.signature ; echo "Uptime: " ; echo
"--------------------------------------------------------------------"
;uptime; echo "
--------------------------------------------------------------------"|'
I put that all on one line in my ~/.muttrc and it adds that in there.
You can off course get rid of some of the information, or change how
it's presented, or even just print out the uptime by cutting out what
you want with a command like:
[timh@eric timh]$ uptime | awk '{print $2,$3,$4}'
up 4 days,
That's not my home workstations, which has a much better uptime to look
at, but I've not going through and created a script to pull that
information. But:
[timh@r2d2 timh]$ uptime
11:09pm up 58 days, 2:41, 23 users, load average: 0.06, 0.06, 0.08
Would like a lot better at the end of a signature! ;0)
tdh
--
T. Holmes
-----------------
UNIXTECHS.org
[EMAIL PROTECTED]
-----------------
"Real Men Use Vi!"
Uptime:
--------------------------------------------------------------------
11:06pm up 4 days, 6:43, 7 users, load average: 0.00, 0.00, 0.00
--------------------------------------------------------------------
| Hey Tim, how do you get your uptime to appear in your sig file?
|
|
|
| peace,
|
| Rog
|
------------------------------------------------------------------
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com