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

Re: [leafnode-list] Multiple NNTPHOST sources



On Tue, 30 Jul 2002, Mike Graham wrote:

> [...] Actually, I'd like to be able to run fetchnews as a regular user
> (it's getting annoying to have to su just to run it, and I need to run
> it manually because I have dial-up access thanks to my rather remote
> location).

Back when I was in in a similar situatuation, I put simply put a call to
fetchnews in my ppp up script and a call to fetchnews -P in my down
script.

Later I set up a cron job (owned by news) which runs a script

  /etc/leafnode/cronrun

which looks like

#!/bin/sh
[ -f /var/lock/subsys/fetchnews ] && /usr/local/sbin/fetchnews

The file /var/lock/subsys/fetchnews can be touched/created by something in
ppp-up and removed by something in ppp-down.

> Neither server will allow me to
> access until I'm dialed into their machine directly.  I have both
> servers in with username and password, but it only actually *works* for
> whichever service I'm dialed into at the time.

That sucks.  Well in that case you will have to call fetchnews with a
different configuration file upon dial-up.  Again, you can have little
scripts run at dial-up and and "dial-down" time.

-j

-- 
Jeffrey Goldberg                            http://www.goldmark.org/jeff/
Relativism is the triumph of authority over truth, convention over justice


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