Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!lll-lcc!qantel!ptsfa!gilbbs!mc68020 From: mc68020@gilbbs.UUCP (Thomas J Keller) Newsgroups: net.bugs.uucp Subject: Re: uucico/uuxqt bugs...howcome? Message-ID: <914@gilbbs.UUCP> Date: Tue, 16-Sep-86 15:13:05 EDT Article-I.D.: gilbbs.914 Posted: Tue Sep 16 15:13:05 1986 Date-Received: Wed, 17-Sep-86 01:56:27 EDT References: <900@gilbbs.UUCP> <612@pyramid.UUCP> Organization: Gil's Place, Santa Rosa CA Lines: 49 Yes, well. I have now had innumerable responses to my queries regarding XQT lock files. Many people have suggested touching the file from cron. AS it happens, that doesn't work. According to a contact at a site with source license, UUCP checks the CREATION time, as opposed to the modification time of the lock file. I have therefore developed a strange but functional script which handles this for me. In the very near future, I intend to follow the many suggestions that I divorce news unbatching from UUXQT. Here is the script I developed that finally seems to have accomplished what I needed: ---------------------------------------------------------------------------- if test -f /usr/spool/uucp/LCK.XQT then if (ps -elf | grep "uucp[a-zA-Z0-9 :]*UUXQT") then nice --10 copy -o /usr/spool/uucp/LCK.XQT /usr/spool/uucp/newlock nice --10 rm /usr/spool/uucp/LCK.XQT nice --10 mv /usr/spool/uucp/newlock /usr/spool/uucp/LCK.XQT echo "Lock file updated \c" >> /hd1/lib/news/xqt.log date >> /hd1/lib/news/xqt.log else sleep 90 if (ps -elf | grep "uucp[a-zA-Z0-9 :]*UUXQT") then exit 0 else rm /usr/spool/uucp/LCK.XQT echo "Lock file removed \c" >> /hd1/lib/news/xqt.log date >> /hd1/lib/news/xqt.log fi fi fi -------------------------------------------------------------------------- Any constructive comments are more than welcome. I am not a highly expereinced shell programmer, so I'm sure there are better ways to accomplish this task. Flames regarding this script politely referred to /dev/null. -- Disclaimer: Disclaimer? DISCLAIMER!? I don't need no stinking DISCLAIMER!!! tom keller "She's alive, ALIVE!" {ihnp4, dual}!ptsfa!gilbbs!mc68020 (* we may not be big, but we're small! *)