Groovy 执行系统命令获取本机名字

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#!/usr/bin/evn groovy
println 'hostname'.execute().text