16 lines
238 B
Go
Raw Normal View History

2018-01-22 19:03:37 -07:00
package main
import (
"log"
"os/exec"
)
func main() {
for {
cmd := exec.Command("x11vnc", "-noxdamage")
log.Printf("X11VNC Waiting for connections...")
err := cmd.Run()
log.Printf("Command finished with error: %v", err)
}
}