Hi,

I just got the idea that it would be a nice feature to log your typing
in tee with timestamps. Maybe you can include this snippet:

  while (c = getchar()){
    if ((timestamp_new = time (0)) - timestamp > delay){
      items = *(localtime(&timestamp_new));
      fprintf (fp, "\n*** %d:%d:%d ***\n", items.tm_hour, items.tm_min, items.tm_sec);
      timestamp = timestamp_new;
    }

    fputc (c, fp);
    putchar (c);
  }

Bye!

-- 
   _/ _/ _/  Emil Obermayr  QEDEMOB @ EED/E/P/L
  _/ _/ _/   fone +49-5121-707-356  fax: -170
 _/ _/ _/    http://www.ericsson.de/fue/standorte/weg_hildesheim.html
_/ _/ _/     Ericsson Eurolab Deutschland GmbH,  Hildesheim,  Germany

_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to