HP3000-L Archives

March 2000, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Barry Lake <[log in to unmask]>
Reply To:
Barry Lake <[log in to unmask]>
Date:
Wed, 1 Mar 2000 15:01:14 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
At 2:50 PM -0800 3/1/00, [log in to unmask] wrote:
>At 2:33 PM -0800 3/1/00, [log in to unmask] wrote:
>>Is there a way to use FINFO to let me know a file is being accessed by
>>another process?
...
>   :if finfo('myfile','accessors') > 0 then
...
>Now, if you don't have 6.0, but you do have some reasonably recent version
>of 5.5, then you could do
>
>   :listf myfile,8 > tmpfile
>
>and then look at record #3 of tmpfile for "0 Accessors" to determine that
>the file isn't being accessed.


Oh yeah, there's another, even more kludgy method which should work on any
version of MPE:

   :setjcw cierror 0
   :continue
   :rename myfile, myfile
   :if cierror = 372 then

HTH,


Barry Lake                                 [log in to unmask]
Allegro Consultants, Inc.                  www.allegro.com
(408)252-2330

ATOM RSS1 RSS2