macct(1)

NAME
macct - account manager

SYNOPSIS
macct [-h] [-c|s|m|d|l|t] <user> [--tl <time_lim>] [--tll <time_lim_left>] [--dl <day_lim>] [--dll <day_lim_left>] [--tu <tot_used|c>] [-f <format>]

DESCRIPTION
Macct is used to edit a user database - i.e. to create and delete records or to change values in it. Use time values in MINUTES.

OPTIONS

-h,--help
    Display a short usage description, including all available options.

-c,--create
    Create a user record with the specified values. Macct will stop with the error message if the user record already exists.

-m,--modify
    Modify the time values in the user record. Modifying depends on the option value sign. If a time value isn't defined, it will be not modified. If the user record doesn't exist, macct will stop with the error message.

-d,--delete
    Delete the user record.

-l,--list
    Show the time values in the user record. To list all users, use "-" instead of the user name. You can specify the output format, using the -f option. If the user record doesn't exist, the error message will appear. If no parameter for macct is specified, it means `-l -'.

-s,--set
    Set time values in the user record. If the user record doesn't exist, the error message will appear.

-t,--time
    Set the modification time. The day-lim-left will be equal to the day-lim for all users. The modification time will be set in the specified value or current time, if c is used or current as a time value. The time value format must be "YYYY/MM/DD HH:MM:SS"

-f,--format
    Specify the output format for the -l key. Use the value like "tl,tll,dl". The user name and the value of the specified fields will be shown in the list in appearance order.
    The fields names are:
    tl time limit
    tll time limit left
    dl daily time limit
    dll daily time limit left
    tu total used time

The parameters are separated by comma and/or blank space.

By default, the output format is defined as FORMAT="tl,tll,dl,dll,tu"

--tl,--time-lim
    Define a field for the total time limit value. Not to limit the user but count his work time, use `nolimit' as a value. The predefined value TIME_LIMIT_NO will be used. Not to limit the user and not to count his work time, use `off' as a value. The predefined value TIME_LIMIT_OFF will be set and this parameter will not be used in any algorithms.

--tll,--time-lim-left
    Define a field for the time limit left value.

--dl,--day-lim
    Define a field for the daily time limit value. Not to limit the user but count his work time, use `nolimit' as a value. The predefined value TIME_LIMIT_NO will be used. Not to limit the user and not to count his work time, use `off' as a value. The predefined value TIME_LIMIT_OFF will be set and this parameter will not be used in any algorithms.

--dll,--day-lim-left
    Define a field for the daily time limit left value.

--tu,--time-used
    Define a field for the total time used value. If you change some time values and/or you want to recalculate this field, use `c` as a value.

FILES
Mode    File
    rw DATAPATH/user.db Bug reports to: Igor Valiaev <iv@vsu.ru>