in reply to Re: how to get spool info from NT
in thread how to get spool info from NT

Ok, but it's not possible to do so in my case, cause there may be a lot of data on STDIN. So I can't read all the data to a variable.
I really need to know the size before the script is working with the data.

Cheers

----------------------------------- --the good, the bad and the physi-- -----------------------------------

Replies are listed 'Best First'.
Re: Re: Re: how to get spool info from NT
by clemburg (Curate) on Jul 17, 2001 at 13:29 UTC

    Well OK, then read the stuff piecewise and save to a file. You *will* have to handle the data some time, I suppose, so you have to read it anyway.

    Christian Lemburg
    Brainbench MVP for Perl
    http://www.brainbench.com

      Actually I only send the data via a socket to a unix-server and don't work with the data :-)
      I need the length of the stream for generating a task-bar to show the user, how many percent is allready done.

      ----------------------------------- --the good, the bad and the physi-- -----------------------------------