ruby 调用Linux 系统环境变量,比如

#!/usr/bin/envrubyuser=ENV['USER']hostname=ENV['HOSTNAME']puts"currentuseris#{user}"puts"currenthostnameis#{hostname}"