[leafnode-list] Re: Filling the gap.

Werner Geuens werner at geuens.org
Sat Sep 9 20:31:22 CEST 2006


On Saturday 09 September 2006 04:13, Thufir wrote:
> from the fetchnews man page:
>
> ENVIRONMENT
>         LN_SKIP_GROUPS=pattern[,pattern[...]]    (since
>         v1.9.53)
>                If set, all groups that match one of the
>                wildmat(3) patterns will be skipped dur-
>                ing the fetch. This can  be  used  as  a
>                quick way of skipping binary groups dur-
>                ing daytime, for instance, example:
>
>                env      ’LN_SKIP_GROUPS=*binary*,alt.*’
>                /usr/sbin/fetchnews -nq
>
> Could I get a concrete example of how this is done, please?

From my script thath downloads only non-binarry groups:

"sudo -u news env 'LN_SKIP_GROUPS=alt.binar*,alt.binair*' /usr/sbin/fetchnews 
-vv"

This requires the my user my run /usr/bin/getchnews assuming the identity of 
user 'news'.

From the config /etc/sudoers:

# Runas alias specification
werner	ALL=(news) NOPASSWD: /usr/sbin/fetchnews
werner	ALL=(news) NOPASSWD: /usr/sbin/texpire
werner	ALL=(news) NOPASSWD: /usr/bin/env


Enjoy !



-- 
Werner Geuens
mailto:werner at geuens.org
"Never underestimate the bandwidth of a station wagon full of tapes
hurtling down the highway."



More information about the leafnode-list mailing list