Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!ames!elroy!mahendo!jplgodo!wlbr!scgvaxd!trwrb!desint!geoff From: geoff@desint.UUCP (Geoff Kuenning) Newsgroups: news.software.b Subject: Re: ihave/sendme Message-ID: <1394@desint.UUCP> Date: Mon, 23-Nov-87 14:26:27 EST Article-I.D.: desint.1394 Posted: Mon Nov 23 14:26:27 1987 Date-Received: Fri, 27-Nov-87 05:14:39 EST References: <347@n8emr.UUCP> Reply-To: geoff@desint.UUCP (Geoff Kuenning) Organization: Interrupt Technology Corp., Manhattan Beach, CA Lines: 62 In article <347@n8emr.UUCP> lwv@n8emr.UUCP (Larry W. Virden) writes: > I am looking for expert assistance in the use of the ihave/sendme type > protocol. What I REALLY want to do is to be able to generate messages which > tell my feeding site "Whoops! Some how I missed this article when unbatching. > Can you please resend it?". I dont want a lot of overhead typically, this Try the following script, which is used as: askfor site-name < list-of-article-id's For example, when all the i-nodes magically disappear on my news partition (a weird problem that only affects that partition), I run the following command: egrep 'No space' /usr/lib/news/errlog | cut -f2 | askfor trwrb The script runs for quite a while because it posts lots of articles to control (even though it does batch ID's as much as it thinks it can), so you should run it in background. Geoff Kuenning geoff@ITcorp.com {uunet,trwrb}!desint!geoff P.S. For BSD sites, xargs is being used here to group article ID's into lines of 60 characters. You can do the same thing with awk or directly in the shell, or you cn try to get xargs from the net. -----------cut here, and don't forget my signature at the end!------------ : Use /bin/sh # # $Header$ # # $Log$ # # Ask a news neighbor for specific articles. # # Usage: # # askfor dest-site < list-of-article-ids OURSITE=`uname -n` INEWS=/usr/lib/news/inews case $# in 1) ;; *) echo 'Usage: askfor dest-site < list-of-article-ids' 1>&2 exit 1 ;; esac DEST=$1 TMP=/tmp/askfor$$ trap "/bin/rm ${TMP}?; exit 1" 1 2 15 echo 'Thank you' > ${TMP}a xargs -s60 echo > ${TMP}b while read arts do $INEWS -n to.$DEST -t "cmsg sendme $arts $OURSITE" < ${TMP}a done < ${TMP}b /bin/rm ${TMP}? exit -- Geoff Kuenning geoff@ITcorp.com {uunet,trwrb}!desint!geoff