package main
import (
"fmt"
"github.com/solar-jsoc/executor"
)
func main() {
stdOut, stdErr, err := executor.Exec("nmap -sV 1.1.1.1 -Pn -oX out.xml > /dev/null && cat out.xml", "", nil)
if err != nil {
fmt.Println(err)
fmt.Println(stdErr)
return
}
fmt.Println(string(stdOut))
}
-
Notifications
You must be signed in to change notification settings - Fork 3
Wrapper for exec.Command for simple using and multi commands executing
License
solar-jsoc/executor
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Wrapper for exec.Command for simple using and multi commands executing