HP3000-L Archives

November 1996, Week 2

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:
[log in to unmask][log in to unmask] 'The Professor' Work: (503) 220-8333 Fax: (503) 228-9588 |
+--------------------------------------------------------------------------+36_8Nov199609:57:[log in to unmask]
Reply To:
Date:
Fri, 8 Nov 1996 12:28:22 CST
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
On Thu, 7 Nov 1996 14:14:22 -0800,   Rodney Behrendorff <[log in to unmask]>
wondered: FINFO - How can I determine if a file is in use?

Sure, you can use MPEX (I'm a big fan) but here's a simpler method,
even if you have MPEX, that I hadn't seen posted (yet):

!continue
!rename testfile.grp,testfile.grp
!while CIERROR=372 and HPFSERR=90
!   pause 30
!   setjcw CIERROR,0
!   continue
!   rename testfile.grp,testfile.grp
!endwhile

This example actually hangs the job until the rename stops failing
due to EXCLUSIVE VIOLATION, FILE BEING ACCESSED  (FSERR 90).
Dropping the FSERR condition would include other causes for rename
failure, such as non-existent permanent file or lockword violation.

------------
Dirk Punzelt     407/768-7138
Rockwell / Avionics - Collins

[log in to unmask]

ATOM RSS1 RSS2