Xref: utzoo comp.unix.xenix:9321 comp.unix.questions:18789 comp.mail.uucp:3897 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!omen!caf From: caf@omen.UUCP (WA7KGX) Newsgroups: comp.unix.xenix,comp.unix.questions,comp.mail.uucp Subject: Re: Bug in SCO uucp system! Keywords: uucp bug Message-ID: <3@omen.UUCP> Date: 5 Jan 90 19:25:54 GMT References: <58@fleet.UUCP> Reply-To: caf@omen.UUCP (WA7KGX) Followup-To: comp.unix.xenix Organization: Omen Technology INC Lines: 72 Better bet is: don't use uusched, it may not do what you wish. I run the following shell script quite often (fequency depends on hour of the day) with output redirected to a spare Multiscreen: date "+$0: %H%M %D" if test -f /usr/spool/uucp/LCK..tty1F then exit 0 fi if test -f /usr/spool/uucp/LCK..tty1f then exit 0 fi cd /u/spool/yam PHONES=/u/caf/bin/phones.t export PHONES mon=/dev/tty08 ulimit 20000 umask 000 if lc *.xx* >/dev/null 2>&1 then for i in *.xx* do chown caf $i su caf -c "yam source $i" 2>&1 | tee $mon >>/tmp/.ttyout done fi if egrep 'FAILED' /usr/spool/uucp/.Status/percy then (mkdir /usr/spool/uucp/percy; touch /usr/spool/uucp/percy/C.percyN0000) >/dev/null 2>&1 rm -f /usr/spool/uucp/.Status/percy fi cd /usr/spool/uucp /bin/su uucp -c "/usr/lib/uucp/uudemon.hour" > /usr/spool/uucp/ulog 2>&1 exit 0 The beginning of the script calls Professional-YAM to tour CompuServe, BIX, GEnie, bulletin boards, etc. under control of files in the /u/spool/yam directory. The following crontab lines control one such polling: 0 5 * * * umask 0; echo " call cbbs-r" > /u/spool/yam/cbbs.xx 0 11 * * * rm -f /u/spool/yam/cbbs.xx And then the above script removes a failed .Status file for site percy if one exists. UUCP to percy (news feed) dies alot and there's no point waiting an hour to try again. A crontab entry: 0 2,3,5,7,19 * * * /bin/su uucp -c "(mkdir /usr/spool/uucp/percy; touch /usr/spool/uucp/percy/C.percyN0000) >/dev/null 2>&1" 50 9,19 * * * rm -f /usr/spool/uucp/percy/C.percyN0000 The end result of this is, my system calls percy 5 times a day and only 5 times a day. It "attack dials" (once every 5 or 20 minutes) as necessary to get those 5 connections. "Most of these vi experts know what they do from studying the source code, not by reading the manual." -- Ray Swartz Chuck Forsberg WA7KGX ...!tektronix!reed!omen!caf Author of YMODEM, ZMODEM, Professional-YAM, ZCOMM, and DSZ Omen Technology Inc "The High Reliability Software" 17505-V NW Sauvie IS RD Portland OR 97231 503-621-3406 TeleGodzilla:621-3746 FAX:621-3735 CIS:70007,2304 Genie:CAF