old-www/LDP/LG/issue15/sigrot.html

159 lines
5.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Sigrot: BBS Taglines for the Net</TITLE>
<META NAME="GENERATOR" CONTENT="Mozilla/3.01Gold (X11; I; Linux 2.0.18 i486) [Netscape]">
<META NAME="Author" CONTENT="Paul Anderson">
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EF" VLINK="#55188A" ALINK="#FF0000">
<H4>
&quot;Linux Gazette...<I>making Linux just a little more fun!</I>&quot;
</H4>
<P> <HR> <P>
<!--===================================================================-->
<H1 ALIGN=CENTER>Sigrot: BBS Taglines for the Net</H1>
<CENTER><P ALIGN=CENTER>By&nbsp;Paul Anderson, &lt;paul@geeky1.ebtech.net&gt;</P></CENTER>
<P> <HR> <P>
<P>Have you ever called BBSes and downloaded QWK packets? If you have,
then you most likely will have either seen or used a tagline. For those
of you who haven't, a tagline is one line of text for a witty saying. It's
usually at the bottom of a persons signature. QWK packets, by the way,
are like UUCP for DOS in that you downloaded this zipped file with all
your mail in it, then you open it in a QWK mail reader, and upload your
replies. The QWK mail reader often supports the ability to change taglines
with each message. </P>
<P>These short witticisms are nice to have at the end of a message, and
sometimes they prove to be the best part! This brings me to the program
featured in this article. Sigrot is currently in version 1.0 and is maintained
by Christopher Morrone, &lt;<A HREF="mailto:cmorrone@udel.edu">cmorrone@udel.edu&gt;</A>.
It can be obtained from gilb5.gilb.udel.edu:/pub/linux/sigrot_v1.0.tar.gz
</P>
<P>Got the tar-file? Good. Untar it with: </P>
<PRE>tar -xzvf sigrot_v1.0.tar.gz
</PRE>
<P>Look in the current directory and you'll find a directory named sigrot_v1.0/
Change into that directory, read the README and INSTALL.help files, then
run make </P>
<PRE>geeky1,1:~/tar-stuff/sigrot_v1.0% make
done
geeky1,1:~/tar-stuff/sigrot_v1.0%
</PRE>
<P>You'll have a program named sigrot in the current directory, sigrot.1
is the manpage. Then you can test it: </P>
<PRE>geeky1,1:~/tar-stuff/sigrot_v1.0% sigrot -w testfile
testfile copied over signature archive.
Type &quot;sigrot -r&quot; to restore the previous archive.
geeky1,1:~/tar-stuff/sigrot_v1.0% sigrot
geeky1,1:~/tar-stuff/sigrot_v1.0%
</PRE>
<P>Well, what have we just done? We've put the signatures in testfile into
sigrot's signature archive, and we've just nuked your ~/.signature file.
Check it out and you'll see that it contains: </P>
<PRE>This is the first signature entry.
</PRE>
<P>Okay, so if we check testfile we see that the first line contains the
first signature. Let's run it again. Okay, what's in ~/.signature now?
Check it out and you'll see: </P>
<PRE>This is
the
second signature
entry.
</PRE>
<P>So what good is this to me, you say? Plenty. Create a new file called
'mysigs' with couple of your favourite one-liners. Now we run our dear
friend sigrot again: </P>
<PRE>geeky1,1:~/tar-stuff/sigrot_v1.0% sigrot -w mysigs
</PRE>
<P>Okay, run sigrot with no command-line options and check ~/.signature.
Is one of the signatures from mysigs in ~/.signature? If so, put the following
in your crontab: </P>
<PRE>00 * * * * sigrot
</PRE>
<P>That'll run sigrot once every hour. Now, you're ready to send e-mail
with your new cool .sig! </P>
<H3>Of prefixes and space reduction.</H3>
<P>Sometimes, when you've got .sig like mine, the majority of my .sig never
changes. If you get a significant number of one-liners in your signature
archive, it can became quite large. What a waste of space. But, wait! There's
a way to reduce the amount of space it takes! To show you what I mean,
Here's my .signature: </P>
<PRE> ---
Paul Anderson
Author of Star Spek(a tongue in cheek pun on Star trek)
e-mail: starspek-request@lowdown.com with subscribe as the subject
I hear it's hilarious. Maintainer of the Tips-HOWTO.
http://www.netcom.com/~tonyh3/speck.html
Manuals out, after all possible keystrokes have failed.
</PRE>
<P>Only the last line ever changes. Why waste disk space when you can use
a more efficient method? Here's what I've done, you see sigrot creates
a directory called ~/.sigrot, and it lets you specify a prefix. A prefix
is what's put before the .sigs from your .sig archive, it's used for stuff
that doesn't change. So, I created a file named ~/.sigrot/prefix, and put
the following in it: </P>
<PRE> ---
Paul Anderson
Author of Star Spek(a tongue in cheek pun on Star trek)
e-mail: starspek-request@lowdown.com with subscribe as the subject
I hear it's hilarious. Maintainer of the Tips-HOWTO.
http://www.netcom.com/~tonyh3/speck.html
</PRE>
<P>See? Sigrot picks a .sig from your .sig-archive, then it appends it
to the file ~/.sigrot/prefix. </P>
<P>
<HR WIDTH="100%">
<P>Now you know how to spiff up your e-mail with a wonderful program called
sigrot. I have a file of 1,000 signatures for use with sigrot, send me
some e-mail at <A HREF="mailto:paul@geeky1.ebtech.net">paul@geeky1.ebtech.net
</A>if you want a copy, or some help on setting up sigrot. </P>
<!--===================================================================-->
<P> <hr> <P>
<center><H5>Copyright &copy; 1997, Paul Anderson <BR>
Published in Issue 15 of the Linux Gazette, March 1997</H5></center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./index.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../index.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./slrnpull.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./mthread.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
</BODY>
</HTML>