ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/util/scripts/maintainlogs.pl
Revision 1.15 - (view) (annotate) - [select for diffs]
Wed Jul 31 16:29:24 2013 UTC (10 years, 1 month ago) by arta
Branch: MAIN
CVS Tags: HEAD, Ver_8-1, Ver_8-10, Ver_8-11, Ver_8-12, Ver_8-2, Ver_8-3, Ver_8-4, Ver_8-5, Ver_8-6, Ver_8-7, Ver_8-8, Ver_9-0, Ver_9-1, Ver_9-2, Ver_9-3, Ver_9-4, Ver_9-41, Ver_9-5, Ver_LATEST
Changes since 1.14: +1 -1 lines
Diff to previous 1.14
Use activeperl link instead of hard-coded 5.12 perl link.

Revision 1.14 - (view) (annotate) - [select for diffs]
Thu Nov 1 14:23:02 2012 UTC (10 years, 10 months ago) by arta
Branch: MAIN
CVS Tags: Ver_8-0
Changes since 1.13: +1 -1 lines
Diff to previous 1.13
Use exit(), not return().

Revision 1.13 - (view) (annotate) - [select for diffs]
Thu Nov 1 13:55:06 2012 UTC (10 years, 10 months ago) by arta
Branch: MAIN
Changes since 1.12: +6 -3 lines
Diff to previous 1.12
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.

Revision 1.12 - (view) (annotate) - [select for diffs]
Fri Jun 22 23:28:32 2012 UTC (11 years, 3 months ago) by arta
Branch: MAIN
CVS Tags: Ver_6-4, Ver_7-0, Ver_7-1
Changes since 1.11: +30 -27 lines
Diff to previous 1.11
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.

Revision 1.11 - (view) (annotate) - [select for diffs]
Thu Jun 21 17:42:54 2012 UTC (11 years, 3 months ago) by arta
Branch: MAIN
Changes since 1.10: +87 -60 lines
Diff to previous 1.10
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.

Revision 1.10 - (view) (annotate) - [select for diffs]
Thu Jun 21 13:31:41 2012 UTC (11 years, 3 months ago) by arta
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9
Need to pass in loglev variable to Trash function.

Revision 1.9 - (view) (annotate) - [select for diffs]
Wed Jun 20 22:13:30 2012 UTC (11 years, 3 months ago) by arta
Branch: MAIN
Changes since 1.8: +29 -15 lines
Diff to previous 1.8
Use lockf instead of flock to lock a network file. Add some logging.

Revision 1.8 - (view) (annotate) - [select for diffs]
Tue Jun 19 17:35:03 2012 UTC (11 years, 3 months ago) by arta
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7
Fix bug - had misspelled a variable name.

Revision 1.7 - (view) (annotate) - [select for diffs]
Tue Jul 5 16:18:54 2011 UTC (12 years, 2 months ago) by arta
Branch: MAIN
CVS Tags: Ver_5-14, Ver_6-0, Ver_6-1, Ver_6-2, Ver_6-3
Changes since 1.6: +58 -31 lines
Diff to previous 1.6
Add a log-level feature (certain print statements print only when verbosity is requested and will not print by default)

Revision 1.6 - (view) (annotate) - [select for diffs]
Tue Jun 28 14:07:48 2011 UTC (12 years, 2 months ago) by arta
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5
Check for each records 'process' value being null before printing it.

Revision 1.5 - (view) (annotate) - [select for diffs]
Tue Jun 28 00:11:27 2011 UTC (12 years, 2 months ago) by arta
Branch: MAIN
Changes since 1.4: +14 -0 lines
Diff to previous 1.4
If this script creates the lock file, then it also chmods it to 0664.

Revision 1.4 - (view) (annotate) - [select for diffs]
Mon Jun 27 17:28:57 2011 UTC (12 years, 2 months ago) by arta
Branch: MAIN
Changes since 1.3: +8 -1 lines
Diff to previous 1.3
Acquire lock before writing to fetchlog.txt to facilitate synchronization between multiple jsoc_fetch instances and the maintainlogs.pl script

Revision 1.3 - (view) (annotate) - [select for diffs]
Mon Mar 14 18:04:50 2011 UTC (12 years, 6 months ago) by arta
Branch: MAIN
CVS Tags: Ver_5-13
Changes since 1.2: +22 -17 lines
Diff to previous 1.2
Fix for accidental inclusion of archive code inside if guard for the presence of the process command.

Revision 1.2 - (view) (annotate) - [select for diffs]
Mon Mar 14 17:31:21 2011 UTC (12 years, 6 months ago) by arta
Branch: MAIN
Changes since 1.1: +84 -29 lines
Diff to previous 1.1
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.

Revision 1.1 - (view) (annotate) - [select for diffs]
Wed Sep 29 23:22:04 2010 UTC (12 years, 11 months ago) by arta
Branch: MAIN
CVS Tags: Ver_5-11, Ver_5-12
Initial submission of script that manages logs.

Convenience Links

Links to HEAD: (view) (annotate) Links to Ver_8-10: (view) (annotate)

Compare Revisions

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.

  Diffs between and
  Type of Diff should be a