File: dumputmp.py

package info (click to toggle)
python-utmp 0.9-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 196 kB
  • sloc: python: 797; ansic: 583; makefile: 49; sh: 2
file content (12 lines) | stat: -rwxr-xr-x 119 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/python3
# dump utmp

import utmp
from UTMPCONST import *

a = utmp.UtmpRecord()


for b in a:
    print(b)