gexpect icon indicating copy to clipboard operation
gexpect copied to clipboard

Pure golang expect library, for easily starting and controlling subprocesses

Results 15 gexpect issues
Sort by recently updated
recently updated
newest added

我该怎么去获取到输出的所有字符串呢?就是expect去匹配的那一个命令的输出

Hi. > $ go build -i -v -x > WORK=/tmp/go-build260147053 > _/home/oceanfish81/gexpect/examples > mkdir -p $WORK/b001/ > cd $WORK > /home/oceanfish81/gollvm_dist/bin/llvm-goc -fgo-importcfg=/dev/null -c -x c - -o /dev/null || true...

this `gexpect` package worked better than the **google** and **netflix** ones. but I have one challenge. I'm trying to capture the response from the automation that I'm trying to do...

Hi, I was testing "AsyncInteractChannels". When using: send, receiver := child.AsyncInteractChannels() Somehow the output looks buffered or waiting on lines '\n'. Would it be possible to create a version without...

After Killing a thread, the thread is leaved as Zombie state. Need to invoke Wait/Release syscall to release the resource. Below are the code snip from golang: ``` // Release...

Seems like some useful features.

I need to write an interactive shell using mysql. When I spawn mysql the mysql client launches beautifully and I am able to hide some commands to initialize the environment,...

Program hangs when I try to execute Expect with unexpected string ``` child, err := gexpect.Spawn("passwd test") if err != nil { log.Fatal(err) } err = child.Expect("YOU WILL NEVER FIND...

Hey there! 👋 I tried to use `gexpect` to test a CLI app and encountered an issue regarding expected and actual line endings (i.e. `0xa`/`0xd`). On `echo 'test\n'` I was...