Random .sigs in UNIX
From Friendly Human Person <rob...@xmission>
· alt.ascii-art
· 11 Feb 1995 21:17 · View full thread
· report
Below is the small perl script I use to randomize my signature. There
are a few ways to use this, you can either put the command in your .login
file, in which case you will get a new .sig everytime you log in, or you
can alias the programs which need it like this:
alias pine randsig;/usr/local/bin/pine
alias tin randsig;/usr/local/bin/tin
which results in a new sig everytime you run pine or tin, you could even
crontab it, to give you a new sig every few minutes. How this works is
to copy a random sig from the directory indicated by @files into
$HOME/.signature when it is run.
------------------------- cut here -----------------
#!/usr/local/bin/perl
#######
# Randomizes your sig by copying a random sig file
# from $HOME/sigs/ into $HOME/.signature
#
# be sure to change $home to your home directory path
# and to change the @files line if you use a different path structure
#
# the file defined in $base will be put into the sig file,
# then the random sig will be appended to it.
# if you want to use this feature, be sure to uncomment the `cat base` line
#######
$home = "/home/users/r/robobob";
$base = "$home/bin/randsigbase";
srand(time|$$);
@files = <$home/bin/randsigs/*>;
$this = $files[rand(@files)];
#`cat $base > $home/.signature`;
`cat $this > $home/.signature`;
-------------- cut here ----------------------
--
\\\\\ \\ \\\\\ \\
\\ \\ \\ \\ \\ \\ The way to fight a woman
\\ \\ \\ \\ \\ \\ is with your hat. Grab
\\\\\ \\\\ \\\\\ \\\\ \\\\\ \\\\ \\\\\ it and run.
\\\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ -- John Barrymore
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\
\\ \\ \\\\ \\\\\ \\\\ \\\\\ \\\\ \\\\\
Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,31b8711944adb504,start X-Google-Attributes: gidf996b,public X-Google-ArrivalTime: 1995-02-11 13:17:06 PST Path: nntp.gmd.de!stern.fokus.gmd.de!gmdtub!cs.tu-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!howland.reston.ans.net!news.sprintlink.net!news.clark.net!rahul.net!a2i!olivea!charnel.ecst.csuchico.edu!news.xmission.com!xmission!robobob From: robobob@xmission (Friendly Human Person) Newsgroups: alt.ascii-art Subject: Random .sigs in UNIX Message-ID: <3hj9gi$s4...@news.xmission.com> Date: 11 Feb 95 21:17:06 GMT Organization: XMission Public Access Internet (801 539 0900) Lines: 43 NNTP-Posting-Host: xmission.xmission.com X-Newsreader: TIN [version 1.2 PL2]
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
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.