Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

utmpset(8) [debian man page]

utmpset(8)						      System Manager's Manual							utmpset(8)

NAME
utmpset - logout a line from utmp and wtmp file SYNOPSIS
utmpset [ -w ] line DESCRIPTION
The utmpset program modifies the user accounting database utmp(5) and optionally wtmp(5) to indicate that the user on the terminal line has logged out. Ordinary init(8) processes handle utmp file records for local login accounting. The runit(8) program doesn't include code to update the utmp file, the getty(8) processes are handled the same as all other services. To enable local login accounting, add utmpset to the getty(8) finish scripts, e.g.: $ cat /service/getty-5/finish #!/bin/sh exec utmpset -w tty5 $ OPTIONS
-w wtmp. Additionally to the utmp file, write an empty record for line to the wtmp file. EXIT CODES
utmpset returns 111 on error, 1 on wrong usage, 0 in all other cases. SEE ALSO
sv(8), runsv(8), runit(8), runit-init(8) runsvdir(8), runsvchdir(8), chpst(8), svlogd(8), getty(8) http://smarden.org/runit/ AUTHOR
Gerrit Pape <pape@smarden.org> utmpset(8)

Check Out this Related Man Page

utmpset(8)						      System Manager's Manual							utmpset(8)

NAME
utmpset - logout a line from utmp and wtmp file SYNOPSIS
utmpset [ -w ] line DESCRIPTION
The utmpset program modifies the user accounting database utmp(5) and optionally wtmp(5) to indicate that the user on the terminal line has logged out. Ordinary init(8) processes handle utmp file records for local login accounting. The runit(8) program doesn't include code to update the utmp file, the getty(8) processes are handled the same as all other services. To enable local login accounting, add utmpset to the getty(8) finish scripts, e.g.: $ cat /service/getty-5/finish #!/bin/sh exec utmpset -w tty5 $ OPTIONS
-w wtmp. Additionally to the utmp file, write an empty record for line to the wtmp file. EXIT CODES
utmpset returns 111 on error, 1 on wrong usage, 0 in all other cases. SEE ALSO
sv(8), runsv(8), runit(8), runit-init(8) runsvdir(8), runsvchdir(8), chpst(8), svlogd(8), getty(8) http://smarden.org/runit/ AUTHOR
Gerrit Pape <pape@smarden.org> utmpset(8)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

jumpstart - finish scripts

hi, where i can find some help on how to write finish scripts for jump-start?? i tried sun-blueprints but i couldnt find it... (2 Replies)
Discussion started by: dorilevy
2 Replies

2. Programming

utmp ACCOUNTING

the utmp.h ACCOUNTING macro is set to 9 on my system. my question is: what "accounting" is it referring to? (2 Replies)
Discussion started by: thmnetwork
2 Replies

3. Shell Programming and Scripting

file formatting ?

I have a log file with start and finish times for various scripts. The start and finish times just get appended one after the other. I want the start and finish times to be on the same line seperated by a comma. Below is an example of the log file I want formatted. logfile: 23:17:15 23:20:26... (16 Replies)
Discussion started by: cstovall
16 Replies

4. Shell Programming and Scripting

Would like to see how others would do this...

I get an output from a script like: RLINK: rlk_ecims-dr_lloravol_rvg STATE: ACTIVE STATUS: has 1833 outstanding writes, occupying 66328 Kbytes (0%) on the SRLis behind by 00:00:08 hours FLAGS: write enabled attached consistent connected asynchronous PROTOCOL: UDP/IP If I wanted to... (16 Replies)
Discussion started by: lm_admin_dh
16 Replies