goexpect
goexpect copied to clipboard
Expect for Go
`C:\Users\u1\go>go version` go version go1.10.3 windows/amd64 `C:\Users\u1\go>go get -v github.com/google/goexpect` github.com/google/goterm/term \# github.com/google/goterm/term src\github.com\google\goterm\term\termios.go:202:32: not enough arguments in call to syscall.Syscall src\github.com\google\goterm\term\termios.go:202:33: undefined: syscall.SYS_IOCTL src\github.com\google\goterm\term\termios.go:213:32: not enough arguments in call...
Hi We are using goexpect at https://github.com/kubevirt/kubevirt [1] With the following settings to SpawnGeneric: ``` opts = append(opts, expect.Verbose(true)) opts = append(opts, expect.VerboseWriter(GinkgoWriter)) ``` [1] https://github.com/kubevirt/kubevirt/blob/75674879e91dfc24a340cae54c92ea7509e42cb4/tests/console/console.go#L209 On one hand it...
* macOS: 10.13.6 * Go: 1.11 Tests on master branch fails: ``` goexpect/master$ go test . 2018/09/11 23:43:37 at login prompt 2018/09/11 23:43:37 at password prompt 2018/09/11 23:43:39 Done sent...
Hi, I'm fairly new to go and I'm having a hard time following the source. How can I determine if the regex match of the "Expect" function succeeded? Thanks, -G
D:\01work\internal_software\trunk\devLicense\wlic\client>go version go version go1.17 windows/amd64 D:\01work\internal_software\trunk\devLicense\wlic\client>go build # github.com/google/goterm/term C:\Users\yxhlc\go\pkg\mod\github.com\google\[email protected]\term\termios.go:202:32: not enough arguments in call to syscall.Syscall C:\Users\yxhlc\go\pkg\mod\github.com\google\[email protected]\term\termios.go:202:33: undefined: syscall.SYS_IOCTL C:\Users\yxhlc\go\pkg\mod\github.com\google\[email protected]\term\termios.go:213:32: not enough arguments in call to syscall.Syscall C:\Users\yxhlc\go\pkg\mod\github.com\google\[email protected]\term\termios.go:213:33:...
When sending a command, how do I get stdout or stderr?
I am having a problem when using goroutines. If i make connections one by one - the connections are successful, I get the data. But if I run many goroutines...
The first link referenced in the [Basic Examples](https://github.com/google/goexpect#basic-examples) section is misleading as it does not contain goexpect examples let alone any reference to the goexpect library.