HP3000-L Archives

March 1997, 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:
Mark Bixby <[log in to unmask]>
Reply To:
Date:
Thu, 27 Mar 1997 11:10:28 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
Jon Diercks writes:
>
> At 09:18 AM 3/27/97 -0800, Mark Bixby wrote:
> >I wrote such a program here that uses AIF calls to dig into the output spoolers
> >to examine the rec-ptr of the open spoolfile to determine percent done.
>
> Sounds close to what I want, but how can it estimate percent done based on
> an *output* spoolfile?  Doesn't rec-ptr == eof most of the time for an
> output spoolfile?  What I'm thinking of is monitoring an input data file for
> a process, such that for serial reads I'd know exactly how far into the file
> it had gone.

For an output spooler process driving a printer, the output spoolfile (i.e.
O12345.OUT.HPSPOOL) is opened for *input*.  Thus rec-ptr divided into eof
gives percent done (well, ignoring printer buffering issues....).

> >If interest warrants, I could make the source available on my ftp/web site.

Interest evidently warrants.  I'll pack up the source & nmprg into a mover
file maybe later this afternoon.  Watch for an announcement.
--
Mark Bixby                      E-mail: [log in to unmask]
Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
District Information Services   1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support               +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)

ATOM RSS1 RSS2