-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 13 March 2005 17:54, Dave Ashmore wrote:
> 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
Why don�t you save some typying and time using cron?
the following:
*/15 * * * * root /home/djash/./sig-pubmail > /home/djash/sigpubmail.txt
Would have the same effect!
At least that�s how I use it!
HTH
Ricardo Castanho
- --
==========================================================
Linux user # 102240 => PGP: 748A9E35 => 100% M$ FREE
==========================================================
Mon, 14 Mar 2005 23:15:00 -0300
23:15:02 up 3 days, 4:22, 4 users, load average: 0.49, 0.32, 0.18
Spence's Admonition:
Never stow away on a kamikaze plane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFCNkaIlyXj13SKnjURAinmAJwLGPow+LNMJNGaq82Uq0iAQa0KpwCZAUD7
ft9jtVq7Ripvs6A8wn3bZXE=
=OlZg
-----END PGP SIGNATURE-----
____________________________________________________
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________