Files
gsmartcontrol/contrib/cron-based_noadmin
Alexander Shaduri af2f758717 Tagging 0.8.5:
GSmartControl now uses XDG config directory for per-user configuration on
        UNIX and CSIDL_PROFILE directory on Windows. Existing configuration is
        migrated automatically.
    The names are shown correctly for unsupported devices even with the latest
        smartctl snapshots now.
    Smartctl SVN revision is shown (if available).
    The progress bars update properly when parallel tests are run.
    Windows: GSmartControl should be able to operate on any valid filesystem
        path (not just locale-representable ones).
    Windows: GSmartControl is now officially compilable on x86_64 via mingw64.
    Fixed compilation under very old gtkmm/libglademm, and with gcc 4.4.
    Fixed parsing of multiple error types in SMART error log.
    Added minor features and fixed miscellaneous bugs.
2010-12-26 19:51:27 +00:00
..
2010-12-26 19:51:27 +00:00
2010-12-26 19:51:27 +00:00
2010-12-26 19:51:27 +00:00
2010-12-26 19:51:27 +00:00

This directory contains scripts and an example crontab to allow GSmartControl
to read smartctl data from cron-generated files. This allows users to read
somewhat recent smartctl information without having to run GSmartControl as
root.

Put the scripts into /usr/local/bin, run GSmartControl and set smartctl path
to "/usr/local/bin/smartctl_subst.sh" (without quotes). An example crontab
runs cron_gather_smart.sh script every 10 minutes, storing its output to
"/var/run/smart-$devname". The smartctl_subst.sh script prints the contents of
this file instead of running smartctl, thus eliminating the need to run
GSmartControl as root when reading SMART values.

Note: These scripts provide read-only capabilities only, they don't allow
changing SMART settings or running self-tests.

Contributed by Alex Butcher <alex dot butcher 'at' assursys.co.uk>.