You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this package with the fyne UI toolkit. When the arp command is execured via exec() it pops up a command window that goes away after the arp command is run. To resolve this issue, the following command must be run before doing the exec():
syscall.SysProcAttr{HideWindow: true}
The following snippet should fix the issue:
func Table() ArpTable {
cmd := exec.Command("arp", "-a")
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
var outb bytes.Buffer
cmd.Stdout = &outb
err := cmd.Run()
data := outb.String()
The text was updated successfully, but these errors were encountered:
I am using this package with the fyne UI toolkit. When the arp command is execured via exec() it pops up a command window that goes away after the arp command is run. To resolve this issue, the following command must be run before doing the exec():
syscall.SysProcAttr{HideWindow: true}
The following snippet should fix the issue:
func Table() ArpTable {
cmd := exec.Command("arp", "-a")
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
var outb bytes.Buffer
cmd.Stdout = &outb
err := cmd.Run()
data := outb.String()
The text was updated successfully, but these errors were encountered: