Article View: news.software.readers
Article #34619Re: slrnpull file mode probs
From: John E. Davis
Date: Thu, 26 Jun 1997 00:00
Date: Thu, 26 Jun 1997 00:00
93 lines
2183 bytes
2183 bytes
On 23 Jun 1997 22:49:46 GMT, Bek Oberin <gossamer@glasswings.com.au>
wrote:
>the first few times i ran it, it worked like a charm, but when i ran it
>again this morning it automagically set all the new articles to mode 600
>- making them unreadable to everybody except root.
Where are you running it from? You may want to explicitly add
something like:
umask 022
to your script that runs slrn. For what its worth, here is my script:
#!/bin/sh
dir=/tmp/news
slrnpull="/home/john/bin/slrnpull"
servers="news.mit.edu news.fuller.edu"
usage="$0 [--no-expire] [--new-groups] [--expire-only] [--post]"
expire=1
new_groups=
expire_only=0
post=
while test X"$1" != X
do
case "$1"
in
--no-expire)
expire=0
shift
;;
--new-groups)
new_groups="--new-groups"
shift
;;
--expire-only)
expire_only=1
shift
;;
--post)
expire=0
post="--post"
shift
;;
*)
echo $usage
exit 1
esac
done
if [ $expire -ne 0 ]
then
echo "`date`: starting expire"
for s in $servers
do
# Before getting new articles, perform expiration.
$slrnpull -d $dir/$s --expire
done
fi
if [ $expire_only -ne 0 ]
then
exit 0
fi
echo "`date`: starting ppp"
umask 022
if /usr/sbin/ppp-on
then
for s in $servers
do
$slrnpull -d $dir/$s -h $s $new_groups $post
done
/usr/sbin/ppp-off
echo "`date`: ppp off"
exit 0
fi
echo "`date`: exiting with error"
exit 1
Technical Details
Message-ID:
<slrn5r3nkb.33a.davis@mygir.davis.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn5qsgp3.2i1.gossamer@penguin.glasswings.com.au>Show Full Headers
Complete Article Headers
Message-ID: <slrn5r3nkb.33a.davis@mygir.davis.net> Subject: Re: slrnpull file mode probs Date: Thu, 26 Jun 1997 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn5qsgp3.2i1.gossamer@penguin.glasswings.com.au> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 252784212 Organization: Center for Space Research Newsgroups: news.software.readers