executing commands through the strbuff