LMS - LAN Management System 1.11-git
Prev |  | Next

# Chapter 4. Scripts

# 4.1. Installation

Configuration of each Perl script should be enclosed in appropriate section of `lms.ini` file. Scripts should be taken from `lms/bin/` directory and placed in `/usr/sbin`. After the move, you have to include them in your crontab, so that they will be executed automatically, which is probably what you want to do.

For example crontab entry which will execute lms-payments script each day one minute after midnight should take a form of:

    1 0 * * *       /usr/sbin/lms-payments 1 > /dev/null

You should read man crontab to learn how to exactly schedule your scripts.

Most LMS scripts have following command line options:

    -C file     location and name of alternative configuration, default: /etc/lms/lms.ini
    -q          run script without any output
    -h          help (usually list of valid command line options)
    -v          information about script version

Prev | Home | Next
Configuration |  | List of available scripts