Use activeperl link instead of hard-coded 5.12 perl link.
Use exit(), not return().
A scalar value was passed to a subroutine after a list, so it got sucked into the list and appeared to be undefined in the subroutine.
Move the code that updates the lastarch field. Instead of calling it only if to-be-archived logs exist, call it always (unless an error prevents it from being called). It should always be updated if the script runs successfully to completion.
Fix bugs - the script was using the path to the log-set as the key to a hash. However, different log-sets can have the same path, so the script got confused.
Need to pass in loglev variable to Trash function.
Use lockf instead of flock to lock a network file. Add some logging.
Fix bug - had misspelled a variable name.
Add a log-level feature (certain print statements print only when verbosity is requested and will not print by default)
Check for each records 'process' value being null before printing it.
If this script creates the lock file, then it also chmods it to 0664.
Acquire lock before writing to fetchlog.txt to facilitate synchronization between multiple jsoc_fetch instances and the maintainlogs.pl script
Fix for accidental inclusion of archive code inside if guard for the presence of the process command.
Add another column, process, to the log maintenance table. This identifies a program/script to run before doing the meat of maintainlogs.pl. The log-monitoring code is the impetus for this change - before we can archive, and delete, an active log file, we must give the log-monitoring code a chance to parse that log file and do its thing with the contained information.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.