我想用Ruby witch net::ssh编写代码,在远程linux机器上一个接一个地运行命令,并记录所有内容(在linux机器上调用命令、stdout和stderr )。data| end end
例如,如果我想在远程linux问题是在linux上,来自cmds阵列的execude命令之间的状态没有保存(因此,在运行正确的命令之前,我必须
./*/ ; echo -e "Checking out in the directory:$thedir"; sleep 2令我惊讶的是,$branchtochechout在echo语句中以及for循环中都给了我null。这个git (windows)不像linux脚本吗?请帮助我理解我在这里做错了什么?