Getting command output in variables