Debian Codegraph @

examples/ping.go

raw symbols SCIP
1 package main
2
3 import gexpect "github.com/ThomasRooney/gexpect"
4 import "log"
5
6 func main() {
7 log.Printf("Testing Ping interact... \n")
8
9 child, err := gexpect.Spawn("ping -c8 127.0.0.1")
10 if err != nil {
11 panic(err)
12 }
13 child.Interact()
14 log.Printf("Success\n")
15 }