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: agnew@cae.wisc.edu (Eric Agnew) Subject: Software: PERL script for random .signature Date: 1995/04/29 Message-ID: <3ntqn9$2st@gagme.wwa.com>#1/1 X-Deja-AN: 101718557 approved: boba@wwa.com sender: boba@gagme.wwa.com references: <3n301h$oh5@gagme.wwa.com> <3noh6o$1td@gagme.wwa.com> <3npir8$ira@gagme.wwa.com> <3nrg5v$o8d@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 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)