On Sat, 2006-02-11 at 20:00 -0500, RickSisler wrote:
> Kevin B. O'Brien ([EMAIL PROTECTED]) wrote:
> > At 06:41 PM 2/11/2006, RickSisler said something remarkably like (but 
> > somehow subtly different from):
> > >Kevin B. O'Brien ([EMAIL PROTECTED]) wrote:
> > >
> > >[snip]
> > >> >> Assuming you save this file as "myquotes,"
> > >> >> just point fortune to it:
> > >> >>
> > >> >> $> fortune /path/to/myquotes
> > >> >> He who laughs last laughs loudest
> > >>
> > >> OK, I tried this, but when I run my script I get the error that my
> > >> database is not a fortune database. I had to run the strfile command
> > >> as root, and I tried running my script as root just to see if that
> > >> made any difference, bit it didn't. Any idea where this went wrong?
> > >>
> > >> Thank you,
> > >Kevin,
> > >Does it work on the command-line ?
> > 
> > No, running it on the command-line is how I could see the error 
> > message. In Evolution, the script simply does not produce the tag 
> > line, but does not tell you why.
> > 
> > >pls, could you post the script ?
> > 
> > #!/bin/bash
> > echo "<br>"
> > echo "-- <br>"
> > echo -e "Kevin B. 
> > O'Brien        TANSTAAFL\n<br>[EMAIL PROTECTED]<br>Registered 
> > Linux user #333216<br>"
> > echo
> >  /usr/games/fortune /home/kevin/Signatures/kobtagline.dat
> Hi Kevin,
> point fortune to the actual file with the qoutes
> like this instead:
> 
> /usr/games/fortune /home/kevin/Signatures/kobtagline
> 
> Try that 8) 
> as an example:
> 
> $ fortune qoutes2
> "Success is how high you bounce when you hit bottom." - General
> George Patton
> 
> $ fortune qoutes2.dat
> fortune:/home/ricks/bin/qoutes2.dat not a fortune file or directory
> No fortunes found
> 
> 

Rick, I don't know how many ways I can screw this up, but now I discover
that the strfile command is creating an empty file. I start with a file
that is over 19K large, and the output is a file that is 32 Bytes. So
now it is saying that it cannot find any fortunes.

On the positive side, I have moved all of my mail over to the Linux box.
The sig below is being generated by a script that calls fortune, but I
am using the built-in data files instead of my own. So that is some
progress at least.

Thank you again for all of your help.

-- 
Kevin B. O'Brien TANSTAAFL 
[EMAIL PROTECTED] 
Registered Linux user #333216
That must be wonderful: I don't understand it at all. -- Moliere

____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to