Compare commits

...

2 Commits

Author SHA1 Message Date
Russ Magee e75ee8b119 go.mod 2022-03-19 09:01:33 -07:00
Russ Magee 826b4de2a3 Added missing arg for linux test 2022-03-19 00:13:23 -07:00
3 changed files with 6 additions and 3 deletions

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module blitter.com/go/goutmp
go 1.17

View File

@ -12,7 +12,7 @@ func main() {
user := "bin"
host := "test.example.com"
utmp := goutmp.Put_utmp(user, "/dev/pts0", host)
goutmp.Put_lastlog_entry("hkexsh", user, "/dev/pts0", host)
goutmp.Put_lastlog_entry("xs", user, "/dev/pts0", host)
time.Sleep(10 * time.Second)
goutmp.Unput_utmp(utmp)
}

View File

@ -11,8 +11,8 @@ import (
func main() {
user := "bin"
host := "test.example.com"
utmp := goutmp.Put_utmp(user, host)
goutmp.Put_lastlog_entry("hkexsh", user, host)
utmp := goutmp.Put_utmp(user, "/dev/pts0", host)
goutmp.Put_lastlog_entry("xs", user, "/dev/pts0", host)
time.Sleep(10 * time.Second)
goutmp.Unput_utmp(utmp)
}