# 具体需要显示的东西可通过xxx.sh展现 def retobj="sh /tmp/xxx.sh".execute().text.readLines() retobj.each{ println it }