home *** CD-ROM | disk | FTP | other *** search
- 3Log
-
- 3Com Corporation
- TSO Engineering - Michel Degive
- 11/01/90
-
- - 3Log is a 3+ utility that will write the name a logged-in user to an
- ascii file. A typical use of 3Log, would be to track which users are
- running an application.
- - 3Log has three commands:
- 1. 3Log ON will write the logged-in user name to the log file
- 2. 3Log OFF will remove the logged-in user name from the log file
- 3. 3Log LIST will list the names of the users in the log file
- - 3Log was written using the 3+ Developer's Library.
- - How to run 3Log:
-
- 3LOG ARG1 ARG2 [ARG3]
- ARG1 = ON to write name
- OFF to remove name
- LIST to list names
- ARG2 = LogFileName EG: MYAPP.LOG
- ARG3 = ProgramName(optional) EG: MYAPP.EXE
- - Examples:
- 1. You want to track who is currently using your HANGMAN program:
- Create a batch file that will start your program (batch file would
- resides on a sharename and is accessed by the users from 3+Menus):
- HANG.BAT
- rem write user name to log file
- 3log on HANG.LOG HANGMAN
- rem run hangman program
- hangman
- rem after hangman program is exited, remove user name from log file
- 3log OFF HANG.LOG HANGMAN
- To find out who is using your program, type:
- 3LOG LIST HANG.LOG
- Voila!
- 2. You want to track who uses your HANGMAN program and for how long:
- Create a batch file that will start your program (batch file would
- resides on a sharename and is accessed by the users from 3+Menus):
- HANG.BAT
- rem write user name to log file
- 3log on HANG.LOG HANGMAN-ON
- rem run hangman program
- hangman
- rem after hangman program is exited, write user name to log file again
- 3log ON HANG.LOG HANGMAN-OFF
- To find out who is using your program, type:
- 3LOG LIST HANG.LOG
- - Source code is included, as well as 3Logmk.bat to recompile 3Log.