On 2007-09-27, Blinky the Shark < @ > wrote:
> Is there a way to get leafnode to upload a post when I send it from my
> client, so it doesn't have to wait until the next leafnode cron job?
I run a script to fetch news every 10 min in the hours I'm n ormally at
home, for the text-only groups. Any binary groups are fetched at night, when
my ISP counts half volumes.
The script tests if there is a outgoing post waiting. If there is, it makes
a post-only run and sleeps a few secs before fetching the news.
That way, I get my own posts back in the same cron job.
#! /bin/bash
if [ `ls "/var/spool/news/ /" | wc -l` -ne 0 ]; then
# Have a post-only run
sudo -u news /usr/sbin/fetchnews -vP
# Wait long enough for the post be digested by the upstream server
echo sleeping 10 sec
sleep 10
fi
sudo -u news env "LN_SKIP_GROUPS= *" /usr/sbin/fetchnews -v
--
There is an art, it says, or rather, a knack to flying.
The knack lies in learning how to throw yourself at the ground and miss.
Douglas Adams