Chris wrote:

On Saturday 12 March 2005 09:09 pm, Kevin B. O'Brien wrote:


I am wondering if there is a signature randomizer for Linux similar to
KookieJar for Windows.

Thank you,



Yes, its called fortune and I believe its installed as part of a normal install. You can call it from a script such as this:


#!/bin/bash
echo "Chris"
echo "Registered Linux User 283774 http://counter.li.org";
STR=$(uptime)
TIME=${STR% user}
RESULT=${TIME%}
echo $RESULT
echo "Mandrake Linux 10.1 Official, kernel $(uname -r)"

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

/usr/games/fortune

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
if [ -p /tmp/xmms-info ] ; then echo "Live - Classic Rock - From Virgin Radio UK $( grep Title: /tmp/xmms-info | awk -F': ' '{print $2}' )"
fi


If using Kmail you can under "Settings > configure Kmail > identies > signature" then select "Obtain signature text from Output of Command. For instance mine is /home/chris/./sig. You can learn more about fortune from "man fortune"

HTH



------------------------------------------------------------------------

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________


Thanks for the tip.
I was able to get it to work in thunderbird by making a script like you suggested and calling it via cron to generate a signature like this every 15 minutes.
First make sig-pubmail executable like so:
chmod 0755 sig-pubmail
Then edit your /etc/crontab file and add a lines like mine below:


0 * * * * root /home/djash/./sig-pubmail > /home/djash/sigpubmail.txt
15 * * * * root /home/djash/./sig-pubmail > /home/djash/sigpubmail.txt
30 * * * * root /home/djash/./sig-pubmail > /home/djash/sigpubmail.txt
45 * * * * root /home/djash/./sig-pubmail > /home/djash/sigpubmail.txt


Then of course just have thunderbird use that file as it's signature. sigpubmail.txt

--
Regards
Dave Ashmore
MDK 10.1 Official Thunderbird 1
##############################################################
All the world's a stage and most of us are desperately unrehearsed.
                -- Sean O'Casey
##############################################################

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to