goutmp/main/test.go

15 lines
258 B
Go

package main
import (
"blitter.com/go/goutmp"
"time"
)
func main() {
user := "bin"
host := "test.example.com"
utmp := goutmp.Put_utmp(user, host)
goutmp.Put_lastlog_entry("hkexsh", user, host)
time.Sleep(10 * time.Second)
goutmp.Unput_utmp(utmp)
}