unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OSF1-V5.1-alpha)
Page:
Section:
Apropos / Subsearch:
optional field



llconvert(8)							 llconvert(8)



NAME

  llconvert - Modify lastlog records from DIGITAL UNIX releases	4.0x and
  prior	to new format

SYNOPSIS

  /usr/lbin/llconvert [-vnrp?h]	input_file [output_file]

OPTIONS

  -r  Restore new format to old	format.

  -v  Verbose. Display lines while converting.

  -n  Do not preserve contents of input	file.

  -p  Formatted	print only. Do not convert. (May be used with the -r option).

  -h (or -?)
      Display usage message.

DESCRIPTION

  The llconvert	command	reads records from the lastlog file, such as
  /var/adm/lastlog, and	converts the record format to the updated struct
  lastlog format. If no	output file is specified or if the output file path
  is identical to the input file path, llconvert makes a backup	copy of	the
  original input file using the	following algorithm:

  filename.orig
      If filename.orig exists.

  filename.~n~
      Where n is a unique number.

  The llconvert	command	attempts to detect an input file that is in the	wrong
  format (for example, input file is already a new format file). A warning
  message is issued in this case, but conversion continues.

RETURN VALUES

  0 (Zero)
      Success.

  -1  An error occurred.








EXAMPLES

   1.  To convert an old format	accounting file	to the new format:
	    llconvert /var/adm/lastlog.prev

       Upon completion of this command,	/var/adm/lastlog.prev will have	been
       converted to the	new format. The	original /var/adm/lastlog.prev is
       renamed to:

       /var/adm/lastlog.prev.orig

   2.  To convert a lastlog file in new	format to the old format:
	    llconvert -r /var/adm/lastlog /var/adm/lastlog.old



FILES

  <&lt;/usr/include/lastlog.h>&gt;
      Lastlog header file that defines the format for the lastlog file.

  /var/adm/lastlog
      The active lastlog file.

SEE ALSO

  Commands: finger(1)