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:
Reply To:
Date:
Fri, 8 Nov 1996 09:08:06 +0100
Content-Type:
text/plain
Parts/Attachments:
Meddelandetext (33 lines)
Larry Boyd wrote
> On  7 Nov 96 at 14:14, Rodney Behrendorff wrote:
>>Does anyone know of a simple way to detect if a particular file is in
use
>>(MPE/iX 5.00 on HP3000)?  I want a job (or command for that matter) to
>>bypass certain steps if a file is being accessed, but FINFO doesn't
seem
>>to provide this information.  "LISTF ,3" shows what I want to know
under
>>"FLAGS:", and even "LISTF ,2" has an asterisk after the filename that
>>tells me enough information.
>
> :PURGE xyz     :)
>
> Just kidding, but it works and is simple.
>
This is actually a good idea. Whith a proper FILE equation this will
work, as in (cut and edited from one of our jobs):
!file chkfile=<yourfile>;acc=outkeep;save;exc
!setjcw cierror 0
!continue
!purge *chkfile
!if cierror=0
  <file is not accessed>
!else
  <file accessed (or some other error, your'e free to check :-))>
!endif

NOTE<plug?>, this was not my idea originally, I found it in 'Thoughts
and discourses on HP3000 software' by E. Volokh along with lots of other
great ideas.
/per

ATOM RSS1 RSS2