# File lib/ohai/plugins/hostname.rb, line 41
  def from_cmd(cmd)
    so = shell_out(cmd)
    so.stdout.split($/)[0]
  end