getting output from shell