- basic code for controling output from commands.