Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 29 Apr 1995.
Software: PERL script for random .signature

Software: PERL script for random .signature

Since it's been asked for again, here it is:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

#!/usr/bin/perl

$home = "/path/to/your/home/directory";
srand(time|$$);
@files = <$home/sigs/data/*>;
$this = $files[rand(@files)];

`cp $home/sigs/header $home/.signature`;
`cat $this >> $home/.signature`;

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

where the second line includes the full path to your home directory in quotes,
sigs/data is the directory within your home dir that has all your files in it,
sigs/header is the first main part of your .sig which is the same every time.

To have it change every time you log in, just put the name of the script as a
line in your '.login' file. To have it change every time you post a message,
add the following line to your .login file:

setenv NEWSPOSTER '~/sigs/sigscript\;Pnews -h %h'

To see the effects of this in action, just check out my .sig below this. The
"header" file contains the first line, with the URL, and the rest will be a
random file from the data directory...
L8er...
                                        -Eric 
-- 
URL- http://www.engr.wisc.edu/~agnew (/sp.html) | Smashing Pumpkins FAQ mtnr.
"Everybody's a liar, I don't trust anyone..."   -SP, Silverfuck(live)

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,8303dd7d2b170534
X-Google-Attributes: gidf996b,public
X-Google-Thread: fd588,8303dd7d2b170534
X-Google-Attributes: gidfd588,public
X-Google-Thread: 110f55,8303dd7d2b170534
X-Google-Attributes: gid110f55,public
X-Google-Thread: fbb9d,8303dd7d2b170534
X-Google-Attributes: gidfbb9d,public
From: agn...@cae.wisc.edu (Eric Agnew)
Subject: Software: PERL script for random .signature
Date: 1995/04/29
Message-ID: <3ntqn9$2s...@gagme.wwa.com>#1/1
X-Deja-AN: 101718557
approved: bob...@wwa.com
sender: bob...@gagme.wwa.com
references: <3n301h$oh...@gagme.wwa.com> <3noh6o$1t...@gagme.wwa.com> <3npir8$ir...@gagme.wwa.com> <3nrg5v$o8...@gagme.wwa.com>
organization: University of Wisconsin - College of Engineering
newsgroups: alt.ascii-art.animation,rec.arts.ascii,alt.ascii-art,alt.binaries.pictures.ascii
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 1995 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post