Get CMD output?

Is there a way to get the bash output, that a bash file might produce?
and can this run at 120fps or is this highly inefficient?