获取远程主机上的当前HOME目录
()
| 139 | |
| 140 | // 获取远程主机上的当前HOME目录 |
| 141 | func (sshRemote *SSHRemote) GetRemoteHome() (currentDir string, err error) { |
| 142 | currentDir, err = sshRemote.ExeSSHCommand("echo ${HOME}") |
| 143 | return currentDir, err |
| 144 | } |
| 145 | |
| 146 | // 获取远程uid,gid |
| 147 | func (sshRemote *SSHRemote) GetRemoteUserInfo() (Uid string, Gid string) { |
no test coverage detected