-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Saturday 21 February 2004 8:37 am, Glenn wrote:
> On Saturday 21 February 2004 08:12, Steve Kaufman wrote:
> > I see some of you in your signature files have a line that says how
> > log your machine has been running since the last boot.
> >
> > How do I find that info and get it into my signature?
> >
> > Thanks
> > Steve
>
> Here's my sig. The pertinent section would be everything before the
> "running Mandrake..." echo statement, of course. Just set up your MUA to
> call up the script.
>
>
> #!/bin/bash
> STR=$(uptime)
> TIME=${STR% user*}
> RESULT=${TIME% *}
> echo -n $RESULT
> echo " running Mandrake Linux 10.0beta2, kernel $(uname -r) on an Intel P4
> 1.8"
> echo "Registered Linux user #324360"
> echo
> /usr/games/fortune
Here's a slightly different way to get the "running Mandrake..." blah blah:
#bin bash
echo "Edmonton,AB,Canada User #244963 at http://counter.li.org"
echo `cat /etc/mandrake-release` kernel "`uname -r`"
echo `uptime`
echo "`/usr/games/fortune -s`"
The second line (cat /etc/mandrake-release kernel uname -r) generates the
second line below. The next line generates the uptime stamp, the last line
generates the last line(s) a.k.a.; the "short" (the -s flag) Fortune cookie.
I should add a tag to the end of that second line;
"On a 6 year old stone axe" <g>
Regards;
Charlie
- --
Edmonton,AB,Canada User #244963 at http://counter.li.org
Mandrake Linux release 10.0 (RC1) for i586 kernel 2.4.25-0.rc4.1mdk
13:26:32 up 1 day, 1:45, 1 user, load average: 0.00, 0.10, 0.19
Vegetarians beware! You are what you eat.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAN8DBZqvqlrLPr5YRAsYOAJ9RrPBdFJ5ctWf9XAmq1Tw+ZZ/kWgCdEq8K
GTHwNNY9xnQZW2h9THFJLVM=
=77KH
-----END PGP SIGNATURE-----
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com