Article View: news.software.nn
Article #3275Re: different sigs for different groups
From: Sami-Jaakko Tikka
Date: Fri, 23 Oct 1992 23:07
Date: Fri, 23 Oct 1992 23:07
37 lines
2252 bytes
2252 bytes
In <zebee.719715589@sirius.ucs.adelaide.edu.au> zebee@sirius.ucs.adelaide.edu.au (Zebee Johnstone) writes:
>| if ${GROUP} = "alt.test"
>| cat $HOME/.scasig >> $WORK
>| else
> cat $HOME/.signature >> $WORK
>I freely admit that I know three fifths of bugger all about script programming,
>so have probably made a silly mistake.
Yes that's it. aux is a /bin/sh shell script. In /bin/sh the if
statement should read
if [ ${GROUP} = "alt.test" ]; then
cat <something>
else
cat <something else>
fi
See 'man sh' for more details.
>I also note that if you change the nn variables as stated in the FAQ, then
>looking at them later, it has made substitutions. So what should the
>variable values be? Does it make a difference if the news server
>is a different machine to the one I'm on?
Eh? I'm afraid I don't understand (but then again English isn't my
native tongue :). Anyway whether it makes a difference depends on how
your nn is configured at compile-time. Nn can read news via NNTP or
from a local spool directory (which of course could be NFS-mounted and
then it wouldn't be local any more :). So you see there is no easy
answer.
--
Sami.Tikka@hut.fi "Live Long and Prosper!"
---------------------------------------------------------------------------
"I think there's a world market for about 5 computers."
- Thomas J. Watson, Chairman of the Board, IBM (around 1948)
Technical Details
Message-ID:
<1992Oct23.230744.4908@cs.hut.fi>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!ferkel.ucsb.edu!taco!gatech!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!news.funet.fi!ajk.tele.fi!funic!news.cs.hut.fi!phantom.cs.hut.fi!stiReferences:
<zebee.719715589@sirius.ucs.adelaide.edu.au>Show Full Headers
Complete Article Headers
Message-ID: <1992Oct23.230744.4908@cs.hut.fi> Subject: Re: different sigs for different groups Date: Fri, 23 Oct 1992 23:07:44 GMT From: sti@phantom.cs.hut.fi (Sami-Jaakko Tikka) References: <zebee.719715589@sirius.ucs.adelaide.edu.au> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!ferkel.ucsb.edu!taco!gatech!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!news.funet.fi!ajk.tele.fi!funic!news.cs.hut.fi!phantom.cs.hut.fi!sti Newsgroups: news.software.nn Sender: usenet@cs.hut.fi (Uutis Ankka) Organization: Helsinki University of Technology, CS lab Lines: 37