Link to USGS home
Surface Water Information--Data Scripts

check_junk.pl

This script is not yet supported (and may never be), but is provided in the interim because many users may find it valuable. Questions about this script should be referred to the script author. The status of the script is noted.

Name:
check_junk.pl - Utility to notify interested parties when incoming data does not process successfully in DECODES.

Information:

This simple script checks the DECODES "junk" area (currently /usr/opt/nwis/data/sentry_depot/junk) for new files showing up in that area and alerts interested parties to their presence.

Example alert email contents with default messages (subject line and message can be changed via settings at the top of the script if desired):

There was a problem processing file(s) through Decodes.
Check /usr/opt/nwis/data/sentry_depot/junk for the problem file(s)

Installation:

Script Language:
ksh

Requirements:

Author(s): (for unsupported scripts, please address questions/comments to the author)
Original author Jon Richards (jrichard@usgs.gov), Washington WSC

Known Problems/Limitations/Need Improvements:

Scripts:

Version 1.0 (Posted 12/19/11):
check_junk.pl download (Zip file = 1.2K)

Back to Scripts
[an error occurred while processing this directive]