home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!mcsun!sun4nl!sun2.iend.wau.nl!HKlompmaker.ZOD.WAU.NL!Hendrik.Klompmaker
- From: Hendrik.Klompmaker@beheer.zod.wau.nl (Hendrik Klompmaker)
- Subject: File locking question
- Message-ID: <Hendrik.Klompmaker.31.726184187@beheer.zod.wau.nl>
- Lines: 28
- Sender: news@sun2.iend.wau.nl (Newsmanager WAU)
- Organization: Wageningen Agricultural University
- Date: Mon, 4 Jan 1993 21:49:47 GMT
-
- Hy,
-
- This might not be the correct folder to put this question but I thought
- there might be a TP solution.
- I have to keep a log file a everyone who logs in to my network. A bacth file
- is used to write to that log file by simple redirection:
- username >>logfile.dat
- which writes the username, time and date to the log file.
- A problem arrises when 2 people log in at the same time. Right: the log file
- is locked by one of them and the other one gets a A-R-I error (abort,re...)
- Is there a simple (and fast and small) method to detect if a file is locked
- or not. (since username is a TP program it would sure be possible to do the
- checking there (how ??) but maybe it would even be possible to do that at
- dos/batch level.
- Any hints ??
-
- Bye
-
- Hendrik
-
- ===============================================================================
- |******** Wageningen Agricultural University. Animal Production Group ********|
- -------------------------------------------------------------------------------
- Hendrik Klompmaker Internet : Hendrik.Klompmaker@Beheer.Zod.Wau.Nl
- System Manager Bitnet : KLOMPMAKER@HWALHW50.BITNET
- Phone : +31 (0)8370-83934 Fax : +31 (0)8370-83962
- Snail : Marijkeweg 40, 6709 PG WAGENINGEN, The Netherlands
- ===============================================================================
-