Solved

How to find number of bytes written to STDOUT

Posted on 2000-04-10
1
211 Views
Last Modified: 2010-03-05
In a CGI script I write a lot of stuff to STDOUT. Is there an easy way to find how many bytes I have written after I've done it?
0
Comment
Question by:rj2
1 Comment
 
LVL 5

Accepted Solution

by:
PC_User321 earned 100 total points
Comment Utility
After every print add the line
   $TotalLength += length "Put the same string that went to STDOUT in here.  (Variables are OK)";

Alternatively write everything that goes to STDOUT to a temp file too, and check the size of that file.

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now