home *** CD-ROM | disk | FTP | other *** search
- ;script to install logon.rexx, logoff.rexx:
- ;
- ;A note from Rene' LeBlanc (CIS: 72157,244)
- ;
- ;The logon.rexx and logoff.rexx programs support a log record for
- ;any number of users, one at a time, to record computer usage
- ;sessions, generating a log file showing all logon events per date
- ;and time, elapsed time until logoff, and accumulated time over any
- ;number of sessions. This program requires ARexx to be installed on
- ;your system when logging on and off, but you may remove ARexx during
- ;the time you are logged on, using the rxc command, just as long as
- ;you reinstall ARexx (execute Start-ARexx script) before you logoff
- ;
- ;Of course, these routines assume you have a system clock, or at least
- ;take the time to enter the time and date after you boot up.
- ;
- ;
- ;If you want to accumulate a log of time spent on different tasks,
- ;logon with different names for each task, and this will create separate
- ;log files for each. This implementation does not support "nesting"
- ;logon sessions; i.e., you must logoff one task before logging on to
- ;another task.
- ;
- ;If you crash your system while logged on, the session data will be
- ;lost. The system elapsed time counter will be lost during a crash.
- ;even if you moved the T:files to recoverable ram disk, so why bother?
- ;Life can be hard!
- ;
- ;You need to have logon.rexx and logoff.rexx in a rexx: directory on
- ;your system disk; and you need a log: directory in a permanent place too.
- ;This script will fix you up. If you want the status command to also
- ;list the current user, also include status.rexx in your rexx: directory.
- ;
- ;Note: The version of ARexx I have (V1.06) seems to have a bug in the
- ;date() function so it can't handle the 31st day of any month. Oh well!
- ;
- if not exists sys:log
- makedir sys:log
- assign log: sys:log
- endif
- if not exists rexx:
- makedir sys:rexx
- assign rexx: sys:rexx
- endif
- copy logon.rexx rexx:
- copy logoff.rexx rexx:
- copy status.rexx rexx:
- echo "You must update your startup-sequence to contain:"
- echo "assign log: sys:log"
-