summaryrefslogtreecommitdiff
path: root/example2/main.go
blob: d8f39b4ad2bf9046c5e231f5cd71eef48ed7ea14 (plain)
1
2
3
4
5
6
7
8
9
10
11
package main

import "log"
import "fmt"
import "git.wit.com/wit/shell"

func main() {
	tmp, output, err := shell.Run("cat /etc/issue")
	log.Println("cat /etc/issue returned", tmp, "error =", err)
	fmt.Print(output)
}