How run bash comman and read output

Martingt89's Avatar, Join Date: Jan 2009
Newbie Member
Hi. I need run command and read output to string or external file.
Run command - system or exec
but as a read terminal?
I have Linux
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Moved to Linux forum