Story Details

Understanding standard streams and redirection

Posted By tutorialStash on Ruby

http://dalibornasevic.com - Every process is initialized with 3 standard file descriptors:

standard input
standard output
standard error

Standard input is read-only, while standard output and standard error are write-only.

In ruby we have both globals and constants to reference these streams:

Submit a Comment

Log in to comment or register here