mirror of
https://github.com/shanghai-edu/multissh.git
synced 2025-12-16 21:37:50 +00:00
0.1.2
auto add exit cmd
This commit is contained in:
parent
cddaeaaf8d
commit
3b1a46e4e0
4 changed files with 4 additions and 5 deletions
|
|
@ -74,6 +74,7 @@ func dossh(username, password, ip string, cmdlist []string, port int, ch chan st
|
|||
}
|
||||
defer session.Close()
|
||||
|
||||
cmdlist = append(cmdlist, "exit")
|
||||
// cmd := "ls;date;exit"
|
||||
stdinBuf, _ := session.StdinPipe()
|
||||
//fmt.Fprintf(os.Stdout, "%s", stdinBuf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue