Commit 7ef22397 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

sort script names in observer; execute in lexical order

This is a legacy commit from before 2015-05-18.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 4396
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent d9e110c4
......@@ -42,13 +42,14 @@
# 09/05/03 V1.8 logger now sits in /bin
# 20/09/10 V1.9 using function defined on a hash is deprecated
# using if instead
# 14/01/12 V1.10 lexically sort script names before execution
#
# ============================================================================
#
# we aren't using Sys::Syslog as I did not managed to get any message through
#use Sys::Syslog;
$VERSION="OBSERVER V1.9 central service";
$VERSION="OBSERVER V1.10 central service";
# called program name
# -------------------
......@@ -277,9 +278,9 @@ foreach $client (keys(%OBSERVER_CLIENT)) {
} readdir(scriptdir);
closedir(scriptdir);
# cycle thorugh scripts
# cycle through scripts
# ---------------------
foreach $script (@scripts) {
foreach $script (sort(@scripts)) {
# check script for correct file attributes
CHECK_FILE($client, $CLIENTUID, $CLIENTGID, "$OBS_SCRIPT_DIR/$script");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment