John Aldrich wrote:
>
> On Thu, 23 Dec 1999, you wrote:
>
> > Jack
> > --
> > Linux: because you can't do a sig like this in Windows.
> > 8:46am up 19 days, 15:29, 2 users, load average: 0.53, 1.39, 1.26
> >
> Kewl....do you run this script EVERY time you post a
> message or daily, or what?
> John
assuming you have your .signature file in /home/rfg
you first create the first part of the signature file:
/home/rfg/sig.part.one
Ramon Gandia
Linux: because you can't do a sig like this in windows
Then you generate a second file, called /home/rfg/sig.part.two:
In cron:
uptime > /home/rfg/sig.part.two
do this every so many minutes, maybe 5 minutes or 1 minute or
whatever. "cron" or "at" will do it.
Third you concatenate the files, as part of the SAME cron
or at script.
cat sig.part.one sig.part.two > .signature
You can combine step two and three on the same cron script:
cat sig.part.one > .signature
uptime >> .signature
This should work. My uptime is 192 days here.
--
Ramon Gandia --- Sysadmin --- http://www.nook.net
285 West 1st Avenue ISP for Western Alaska
P.O. Box 970 tel. 907-443-7575
Nome, Alaska 99762 fax. 907-443-2487
=======================================================