[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
STDOUT

STDOUT

In many programming and scripting languages, when you use a print or similar statement, you are print to STDOUT, which stands for STanDard OUTput. It's the standard place where data is sent to. It may be attached to a pipe which may go to the console, a file, or into another program. That's how programs are chained together on the UNIX command line.

ps -ef | wc -l

The ps program prints to STDOUT the proccesses running on the system. This output is then piped to the  ?STDIN (STanDard INput) of the wc (word count) program, which with the -l flag prints the number of lines of input it got to STDOUT. STDOUT, if you type that command at a shell, will be piped to the window you are looking at so you'll see the output (which is a number roughly equal to the number of proccesses running on your system).

last edited (July 9, 2003) by Jonathan, Number of views: 0, Current Rev: 1

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.