Thread View: news.software.readers
1 messages
1 total messages
Started by Martin Ramsch
Fri, 06 Nov 1998 00:00
[slrn] helper shell scripts
Author: Martin Ramsch
Date: Fri, 06 Nov 1998 00:00
Date: Fri, 06 Nov 1998 00:00
51 lines
1928 bytes
1928 bytes
Hi,
no question this time, but some (hopefully) useful Bash shell scripts
that are to help slrn users dealing with different newsservers.
First, two little scripts to make slrn use the default ~/.newsrc:
alias sl="slrn -f .newsrc"
alias xsl="{ xterm -geometry 80x52 -title slrn +sb -e slrn -f .newsrc & }"
Now, the real bonus. Calling "slserv" without an argument presents a
list of newsservers used so far to choose from, calling it with the
name of a newshost it uses that,
e.g. slserv news.uni-stuttgart.de
or slserv
function slserv {
local server='' cmd='';
if [ "$1" = 'X11' ]
then
cmd='xterm -geometry 80x52 -title "slrn: $server" +sb -e '
shift
fi
if [ $# -eq 0 ]
then
select server in \
$( for i in ~/.newsrc-*.time; do i=${i#~/.newsrc-}; echo ${i%.time}; done )
do
if [ -n "$server" ]
then
set -- "$server"
break
fi
done
fi
for server in "$@"
do
touch .newsrc-"$server"
eval $cmd slrn -f .newsrc-"'$server'" --nntp -h "'$server'" &
done
}
alias xslserv='slserv X11'
Regards,
Martin
--
Martin Ramsch <m.ramsch@computer.org> <URL: http://home.pages.de/~ramsch/ >
PGP KeyID=0xE8EF4F75 FiPr=52 44 5E F3 B0 B1 38 26 E4 EC 80 58 7B 31 3A D7
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads