🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Drew Wed, 22 May 1996 00:00
Random .sigs
#21992
Author: Drew
Date: Wed, 22 May 1996 00:00
36 lines
1628 bytes

This is from man tin...

     default_sigfile
         The path that specifies the signature file to  use  when
         posting,  following  upto  or replying to an article. If
         the path is a  directory  then  the  signature  will  be
         randomly  generated from files that are in the specified
         directory.  Default is $HOME/.Sig.

and this is from my .tin/tinrc
# Signature path (random sigs)/file to be used when posting/replying to messages
default_sigfile=~/.Sig


.Sig is a directory, and I've got a bunch of small text files in there, 
and from the above, tin ought to pick one of them as a .sig when I post. 
It doesn't. It doesn't include anything at all unless the line in tinrc
gives it a *file* name.

Alternatively, is there any easy way of switching among a few different
signatures every time I source .cshrc, or something similar?
I've seen a couple of programs to do this, but I don't have 
easy access to a C compiler, is there any shell script out there
that would accomplish the same thing?

Something that would work with *trn* would be ideal.


Drew




Re: Random .sigs
#22009
Author: Lee Bailey
Date: Thu, 23 May 1996 00:00
44 lines
2376 bytes
Drew (aglazier@fas.HARVARD.EDU) wrote:
> 
> This is from man tin...[snip]
> 
> .Sig is a directory, and I've got a bunch of small text files in there, 
> and from the above, tin ought to pick one of them as a .sig when I post. 
> It doesn't. It doesn't include anything at all unless the line in tinrc
> gives it a *file* name.

I have the same setup and it works fine. Don't know if it matters, but the
files in me .Sig dir are named x.sig were x is a number (I have a script
which takes a text file and generates these separate files in .Sig). 

I also have a file in my HOME dir called .sigfixed. Tin will append a 
random selection from the .Sig dir to this file upon every post or mail.

> Alternatively, is there any easy way of switching among a few different
> signatures every time I source .cshrc, or something similar?
> I've seen a couple of programs to do this, but I don't have 
> easy access to a C compiler, is there any shell script out there
> that would accomplish the same thing?

I also use a shell script to randomly pick from .Sig every time I run 
pine, you could do the same with trn. The script is capable of selecting 
up to 118 random sigs (uses hour:min:sec as the seed number). Again, it 
also relies on the existance of a .sigfixed file to append to. 

> Something that would work with *trn* would be ideal.

It should work with any program that uses a sig file. E-mail me and I'll 
forward it to you.

> Drew



______________________________________________________________________________
  Lee Bailey 	| User of OS/2 and Geoworks Ensemble instead of M$ Windoze,
offsite@crl.com	| get Geos demo at ftp://arginine.umdnj.edu/pub/geos/publish
______________________________________________________________________________
...that's what I use to fill the squirtgun I disipline the cat with. 

Re: Random .sigs
#22060
Author: Rob Funk
Date: Sat, 25 May 1996 00:00
33 lines
1627 bytes
In article <4nvkgi$n80@decaxp.HARVARD.EDU>,
Drew <aglazier@fas.HARVARD.EDU> wrote:
>Alternatively, is there any easy way of switching among a few different
>signatures every time I source .cshrc, or something similar?
>I've seen a couple of programs to do this, but I don't have 
>easy access to a C compiler, is there any shell script out there
>that would accomplish the same thing?

I use this to switch between two different .signatures.

#!/bin/sh
#
# altsig - alternate two files as .signature

if cmp -s .signature .signature-1
then
#	echo same
	rm -f .signature
	ln -s .signature-2 .signature
else
#	echo different
	rm -f .signature
	ln -s .signature-1 .signature
fi

-- 
------------- R o b  F u n k -------------|---------> funk+@osu.edu <---------
   "A microscope locked in on one point   |rfunk@magnus.acs.ohio-state.edu
Never sees what kind of room that it's in"|rfunk@freenet.columbus.oh.us
    -- Chris Mars, "Stuck in Rewind"  |http://er4www.eng.ohio-state.edu/~funkr

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