This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Tom, try the following: 1) become root and type "crontab -l" That will list out the commands in root's cron. Since you are seeing the error message mailed to you from Super-user, I suspect that root has an entry for trying to run dostats. You can remove that invocation. 2) Become the ldm user and type "crontab -l" You should see that LDM is running dostats even though you show it commented out in the list below. This is where is should be run, and apparently is. I have looked at our stats mail logs and see that address@hidden is the user we are receiving stats from, eg: Oct 7 09:35:02 laraine.unidata.ucar.edu sendmail[21882]: JAA21882: from=<address@hidden>, size=1361, class=0, pri=31361, nrcpts=1, msgid=<address@hidden>, proto=ESMTP, relay=byron.ca.uky.edu [128.163.192.2] You can edit your crons directly with: setenv EDITOR vi (or your prefered editor) crontab -e The listing you show below I suspect is not the same as what you are actually running. Steve Chiswell >From: Tom Priddy <address@hidden> >Organization: . >Keywords: 199910071540.JAA22283 >From: Tom Priddy > >Steve....I checked the crontabs....they are owned by ldm: >See below: >kelvin% ls -l cron* >-rw-r--r-- 1 ldm staff 1556 Sep 17 15:35 crontab.aqua >-rw-r--r-- 1 ldm staff 1528 Sep 21 14:23 crontab.niu >-rw-r--r-- 1 ldm staff 1547 Sep 20 10:49 crontab.owl >-rw-r--r-- 1 ldm staff 1529 Sep 17 15:34 crontab.txt >kelvin% >My crontab.txt has the following statements in it: >kelvin% pg crontab.txt ># ># LDM crontab file ># Modified: Tue June 8 13:16:03 EST 1999 ># >0 0 * * * bin/ldmadmin newlog >/dev/null 2>&1 >0 1,4,7,10,13,16,19,22 * * * bin/ldmadmin scour >/dev/null 2>&1 >10,30,50 * * * * bin/ldmfail -p weather.admin.niu.edu -f >aqua.atmos.uah.edu >/dev/null 2>&1 >#35 * * * * /usr/local/ldm/bin/ldmadmin dostats >/dev/null 2 > >&1 ># Added 02/22/1999 to produce a backup Regional Reports page >0,5,10,15,20,25,30,35,40,45,50,55 * * * * data/public/Alertwx.pl >/dev/n > ull >2>&1 ># rotate logs >0 17 * * * bin/newlog data/gempak/logs/dcamos.log 2 >/dev/null 2>&1 >0 17 * * * bin/newlog data/gempak/logs/dcmmos.log 2 >/dev/null 2>&1 >0 17 * * * bin/newlog data/gempak/logs/dcnmos.log 2 >/dev/null 2>&1 >0 17 * * * bin/newlog data/gempak/logs/dcnldn.log 2 >/dev/null 2>&1 >0 17 * * * bin/newlog data/gempak/logs/dcncprof.log 2 >/dev/null 2>&1 >0 17 * * * bin/newlog data/gempak/logs/dctrop.log 2 >/dev/null 2>&1 >0 17 * * * bin/newlog data/gempak/logs/dcwatch.log 2 >/dev/null 2>&1 >0 17 * * * bin/newlog data/gempak/logs/dcffg.log 2 >/dev/null 2>&1 >0 17 * * * bin/newlog data/gempak/logs/dcstorm.log 2 >/dev/null 2>&1 >0 17 * * * bin/newlog data/gempak/logs/dchrly.log 2 >/dev/null 2>&1 >0 17 * * * bin/newlog data/gempak/logs/dcsynop_sb.log 2 >/dev/null 2>&1 >0 17 * * * bin/newlog data/gempak/logs/dcsynop_syn.log 2 >/dev/null 2>&1 >0 17 * * * bin/newlog data/gempak/logs/dcuair.log 2 >/dev/null 2>&1 ># ># purge severe weather messages >14,29,44,59 * * * * data/public/Purge.pl >/dev/null 2>&1 >(EOF): > >Could I be running a second ldm on my system?/ktp > > >Unidata Support wrote: > >> Tom, >> >> The root crontab should not be running the dostats command. >> This should be in the ldm crontab. >> >> The message from Super-User is complaining because it cant find >> the bin/ldmadmin script under its home directory, because its under the >> ldm directory. Since we are seeing the stats arrive here, it would seem >> like you might be running the script from both LDM and Root's crontab. >> >> If this is the cause, you only need to remove the crontab entry from root's >> cron. Otherwise, we'll need to figurte out why we seem to have stats files >> here. >> >> Steve Chiswell >> Unidata User Support >> >> >From: Tom Priddy <address@hidden> >> >Organization: . >> >Keywords: 199910061921.NAA14117 >> >> >From: Tom Priddy >> >Steve...here's the message I receive from Kelvin...concerning stats every h > our >> > : >> >From: Super-User >> >Subject: Output from crontab >> >Your "cron" job on Kelvin >> >"bin/ldmadmin dostats" >> >produced the following output: >> >sh: bin/ldmadmin: not found > > >> >Unidata Support wrote: >> > >> >> >From: Tom Priddy <address@hidden> >> >> >Organization: . >> >> >Keywords: 199910061638.KAA08877 >> >> >> >> >From: Tom Priddy >> >> > >> >> >That's what I'll do....change or add so that hds is scoured every 2 days > . >> > One >> >> >other thing.....I still get an error message every hour when ldmadmin do > sta >> > ts >> >> >is run. Is that normal.....does that happen to other people? >> >> >Thanks, again./ktp >> >> > >> >> >> >> Tom, >> >> >> >> Error messages from dostats isn't normal. Can you provide me with the err > or >> >> message? >> >> >> >> We are receiving stats files from Kelvin, and I cannot readily see a prob > lem >> > , >> >> but it would be annoying for you to keep getting those email messages. >> >> >> >> Steve Chiswell >> >> ************************************************************************* > *** >> >> Unidata User Support UCAR Unidata Prog > ram >> >> (303)497-8644 P.O. Box 3 > 000 >> >> address@hidden Boulder, CO 80 > 307 >> >> ------------------------------------------------------------------------- > --- >> >> Unidata WWW Service http://www.unidata.ucar.edu/ >> >> ************************************************************************* > *** >> > >> >-- >> >============================================================ >> >Tom Priddy address@hidden >> >Extension Ag. Meteorologist ph: 606-257-3000ext245 >> >Ag. Weather Center fax: 606-257-5671 >> >243 Ag. Engineering Bldg >> >Dept. of Biosystems and Ag. Engr. >> >University of Kentucky >> >Lexington, KY 40546-0276 >> >HOMEPAGE http://wwwagwx.ca.uky.edu >> >============================================================ >> > >> > >> >> **************************************************************************** >> Unidata User Support UCAR Unidata Program >> (303)497-8644 P.O. Box 3000 >> address@hidden Boulder, CO 80307 >> ---------------------------------------------------------------------------- >> Unidata WWW Service http://www.unidata.ucar.edu/ >> **************************************************************************** > >-- >============================================================ >Tom Priddy address@hidden >Extension Ag. Meteorologist ph: 606-257-3000ext245 >Ag. Weather Center fax: 606-257-5671 >243 Ag. Engineering Bldg >Dept. of Biosystems and Ag. Engr. >University of Kentucky >Lexington, KY 40546-0276 >HOMEPAGE http://wwwagwx.ca.uky.edu >============================================================ > >