check_output to the rescue