Query: wtmpfix
OS: hpux
Section: 1m
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
fwtmp(1M) fwtmp(1M)NAMEfwtmp, wtmpfix - manipulate connect accounting recordsSYNOPSIS[files]DESCRIPTIONfwtmp reads from the standard input and writes to the standard output, converting binary records of the type found in to formatted ASCII records. The ASCII version is useful to enable editing, via ed(1), bad records or for general purpose maintenance of the file. The argument is used to denote that input is in ASCII form, and output is to be written in binary form. The arguments and are independent, respectively specifying ASCII input and binary output. Therefor, is an ASCII to ASCII copy and is a binary to binary copy. should be used for reading If is not used, structure is read. wtmpfix examines the standard input or named files in format, corrects the time/date stamps to make the entries consistent, and writes to the stan- dard output. A can be used in place of files to indicate the standard input. If time/date corrections are not performed, will fault when it encounters certain date-change records. Each time the date is set, a pair of date change records is written to The first record is the old date denoted by the string old time placed in the line field and the flag placed in the type field of the structure. The second record specifies the new date, and is denoted by the string placed in the line field and the flag placed in the type field. uses these records to synchronize all time stamps in the file. nullifies date change records when writing to the standard output by setting the time field of the structure in the old date change record equal to the time field in the new date change record. This prevents and from factoring in a date change record pair more than once. In addition to correcting time/date stamps, wtmpfix checks the validity of the name field to ensure that it consists solely of alphanumeric characters or spaces. If it encounters a name that is considered invalid, it changes the login name to and writes a diagnostic to the standard error. This minimizes the risk that will fail when processing connect accounting records.DIAGNOSTICSwtmpfix generates the following diagnostics messages:WARNINGSgenerates no errors, even on garbage input.FILESSEE ALSOed(1), acct(1M), acctcms(1M), acctcom(1M), acctcon(1M), acctmerg(1M), acctprc(1M), acctsh(1M), runacct(1M), acct(2), acct(4), utmp(4), wtmps(4).STANDARDS CONFORMANCEfwtmp(1M)
Related Man Pages |
---|
wtmpfix(1m) - hpux |
wtmpfix(1m) - sunos |
fwtmp(1m) - minix |
fwtmp(1m) - mojave |
fwtmp(1m) - linux |
Similar Topics in the Unix Linux Community |
---|
Copying files with the latest date |
find and group records in a file |
File search variables |
comm command help with unicode chars in file |
Replacing last line with awk and change the file name |