The "tee" filter copies its STDIN to its STDOUT while making a copy to $capturefile. "tee" is also a useful tool when trying to diagnose complex pipes.system("cplusplusprogram | tee $capturefile");
In reply to Re: Reading from terminal
by eye
in thread Reading from terminal
by uvnew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |