Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tomstitt/fun_with_pipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Redirecting stdout and stderr to a local buffer:

> g++ fun_with_pipes.cpp
> ./a.out
1: writing to stdout
2: printing 'wow some text' to stdout
2: buffer contents: '1: wow some text'
2: closing buffered pipe
1: printing to stdout again

If you try to write too much without reading you can deadlock. Pipe capacity: https://linux.die.net/man/7/pipe

About

local buffer stream redirection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages