[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Re: fetchnews -P connects regardless

Bob Firth schrieb:

> I am running leafnode 1.9.19 on RH6.2, with a dialup connection controlled
> by diald.  I have cron running the following script every hour:
> #!/bin/sh
> /usr/sbin/sendmail -q &
> /usr/sbin/fetchnews -P &

> So I guess I'm requesting that fetchnews -P will exit immediately if
> there's nothing waiting to go out.  Is there some technical reason why
> this shouldn't be the case?

I don't know, but what about:

if [ $(ls /var/spool/news/out.going | wc -l) -gt 0 ] ; then
  /usr/sbin/fetchnews -P &

leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list