17 lines
259 B
Go
17 lines
259 B
Go
package main
|
|
|
|
import ("os/exec"; "fmt")
|
|
|
|
func main() {
|
|
cmd := exec.Command("ls", "-a" "-l", "-h")
|
|
out, err := cmd.Output()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
fmt.Println("====== Output")
|
|
fmt.Print(string(out))
|
|
}
|
|
|
|
// == todo
|
|
// full command lines with bash?
|