RE: [newbie] Problem with fortunes, .signature and/or crontab

2004-06-17 Thread Tony S. Sykes

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Tony S. Sykes
Sent: Thursday, June 17, 2004 3:25 PM
To: [EMAIL PROTECTED]
Subject: RE: [newbie] Problem with fortunes, .signature and/or crontab


Chuck,

explicitly run fortune as cron sometimes does not pick up the paths.

Tony.



also root does not seem to have /usr/games in it's path either which won't help.


-+-+-+-+-+-+-+-+-+ Business Computer Projects - Disclaimer -+-+-+-+-+-+-+-+-+-
This message, and any associated attachment is confidential.  If you have recieved
it in error, please delete it from your system, do not use or disclose the information
in any way, and notify either the sender or [EMAIL PROTECTED] immediately.
The contents of this message may contain personal views which are not necessarily 
the views of Business Computer Projects Ltd., unless specifically stated.  Whilst every
effort has been made to ensure that emails and their attachments are virus free, it is 
the responsibility of the recipient(s) to verify the integrity of such emails.
Business Computer Projects Ltd
BCP House
151 Charles Street
Stockport
Cheshire
SK1 3JY
Tel: +44 (0)161 355-3000
Fax: +44 (0)161 355-3001
Web: http://www.bcpsoftware.com


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



RE: [newbie] Problem with fortunes, .signature and/or crontab

2004-06-17 Thread Tony S. Sykes
Chuck,

explicitly run fortune as cron sometimes does not pick up the paths.

Tony.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Chuck MATTSEN
Sent: Wednesday, June 16, 2004 6:26 AM
To: [EMAIL PROTECTED]
Subject: [newbie] Problem with fortunes, .signature and/or crontab


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Due to an incompatibility between Mozilla Thunderbird's Enigmail
encryption extension and the TagZilla tagline extension, I'm dropping
TagZilla and going back to using the fortune method.

As you can see by the sig (below), there's no fortune currently
displaying, and that confuses the heck out of me.

I've put my taglines into a %-delimeted file in
/usr/share/games/fortunes as a file called myquotes, and have run
strfile myquotes to generate the .dat file.  That seems fine, near as
I can tell.

I've got Kcron setup to generate a new .signature file every 5 minutes
(I want to change that, too, but need to figure out what else is wrong
first) and, indeed, if I manually "run now" with Kcron I get a valid
tagline appended to my sig.  Each time I run it manually it works just
fine.

However, after the 5-minute period is up, the signature generated is
like the one below (i.e., minus the tagline itself).

Maybe I'm just too tired, but I don't see what's wrong here.

Here's my file to generate the .signature file for Thunderbird:

~ #bin bash
~ echo "-- " > /home/chuck/.signature
~ echo "Chuck MATTSEN / [EMAIL PROTECTED] / Mahnomen, MN / RLU #346519"
|> /home/chuck/.signature
~ echo `cat /etc/mandrake-release` kernel "`uname -r`" >>
/home/chuck/.signature
~ echo `uptime` >> /home/chuck/.signature
~ echo " " >> /home/chuck/.signature
~ echo "Random Thought/Quote For This Message:  " >>
/home/chuck/.signature
~ echo "   " `fortune /usr/share/games/fortunes/myquotes` >>
/home/chuck/.signature

If there were something wrong with my Kcron setup, I could see it
/not/ changing, but why would it suddenly go blank after the first
instance of a tagline until manually "fired up" again?

Anyone?  TIA.

- --
Chuck MATTSEN / [EMAIL PROTECTED] / Mahnomen, MN / RLU #346519
Mandrakelinux release 10.1 (Cooker) for i586 kernel 2.6.3-9mdk
00:15:00 up 10:26, 1 user, load average: 0.12, 0.21, 0.18

Random Thought/Quote For This Message:

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAz9nc+qbiwggubBwRAqelAJwIczRie+2R5upfKDT/2VoEQ1u4MACeIAnR
SyOSHQ+BkasQU0O3yNiS2fc=
=rdsb
-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