HP3000-L Archives

June 1998, Week 4

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:
Stan Sieler <[log in to unmask]>
Reply To:
Stan Sieler <[log in to unmask]>
Date:
Sat, 27 Jun 1998 13:17:02 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (60 lines)
Mike asks:

> I want to take a look at a $stdin file waiting to be submitted as a batch job.
> I thought I'd just open the Ifile.IN.HPSPOOL, but found it's a privledged mode
> file.
> In MPE/V we used to be able to run FLUTIL to change file types. Is anyone aware
> of a way to do this in MPE/IX?

You don't need to change anything.  (And, if you did, it wouldn't be the file type...
it's the file "priv_level" field in this case.  In some other cases, it may be
that the file has a negative filecode.)

A program that knows how to specify a priv_level via HPFOPEN will suffice...
the PRINTSPF utility, in PUB.SYS, should work (you may need to be SM):

   :printspf i104.in.hpspool
   PRINTSPF A.00.00 Copyright (C) Hewlett-Packard 1989.  All rights reserved.
   WR P1=$0000 P2=$0000 BUF/#   8= :echo hi
   WR P1=$0000 P2=$0000 BUF/#  13= :eoj hi there

But, if you really want to change the priv level (perhaps to allow the
original streamer of the job to look at it), you can:

<plug> use Lund's De-Frag/X to change the privlege level of the file:

   :run defragx.defragx.lps
   De-Frag/X  B.05c (run on  6/27/98 13:09:56.8)
   Copyright (c) 1993 Lund Performance Solutions
   ...

   altfile i104.in.hpspool   priv 3

   Are you sure you want to alter i104.in.hpspool? (def=N) y
      Old state:
         PROTECTED  =  False
         FILE_CODE  =   1515
         PRIV_LEVEL =      2
      New state:
         PROTECTED  =  False
         FILE_CODE  =   1515
         PRIV_LEVEL =      3
   exit

   :print i104.in.hpspool
   :echo hi
   :eoj hi there

Note: De-Frag/X only allows users with SM to change the priv_level of a file.
</plug>

Of course, there may be repercussions to changing the privilege level.

Note: I tried MPEX first (even though I wrote De-Frag/X :), but it doesn't
seem to have a priv_level change capability.  It can, however, change the
file code for you.

--
Stan Sieler                                          [log in to unmask]
                                     http://www.allegro.com/sieler.html

ATOM RSS1 RSS2