Xref: utzoo comp.unix.questions:17940 comp.unix.xenix:8683 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!rex!mgse!fleet!mel From: mel@fleet.UUCP (mel) Newsgroups: comp.unix.questions,comp.unix.xenix Subject: Supress Error Message Keywords: Error cron Message-ID: <52@fleet.UUCP> Date: 23 Nov 89 10:13:45 GMT Organization: Fleet Parts & Equipment, Inc. Lines: 42 I'm using the following "C" script to check for the presence of unsent mail etc under Xenix 386 ver 2.3.1. #! /bin/csh # # call only on demand # foreach i (rex cbay) foreach j (/usr/spool/uucp/$i/C.$i*) if (-e $j) then /usr/lib/uucp/uucico -r1 -s$i endif break end end The above script is triggered by the following line in my root cron file. 0,15,30,45 * * * * csh /usr/lib/uucp/uucall >/dev/null Whenever either the directories the script is checking for are empty and/or erased by uuclean an error message like the following is sent to the root user. (These keep filling up my root mail file every 15 minutes.) ************************************************* Cron: The previous message is the standard output and standard error of one of your cron commands. From root Thu Nov 16 18:15:01 1989 To: root Date: Thu Nov 16 18:15:00 1989 foreach: No match. HOW CAN I ALTER THIS SCRIPT TO AVOID THE SENDING OF THIS MESSAGE FOR BOTH OF THE TWO CASES STATED ABOVE? Thanks in advance, Mel Shear !rex!mgse!fleet!mel