"Turn" stdin, stdout, stderr and redirect

Source: Internet
Author: User

See more: http://my.oschina.net/qihh/blog/55308

STDIN is standard input file, stdout is standard output file, stderr standard error file.

The programs use these files as follows:

  • The standard input is where the program can read its input. By default, the process reads stdin from the keyboard.

  • The standard output is where the program writes its output. By default, the process writes stdout to the terminal screen.

  • The standard error is where the program writes its error message. By default, the process writes stderr to the terminal screen.

"Turn" stdin, stdout, stderr and redirect

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.