Trouble with Fortunes
Here's the situation: I'm trying to make the motd block contain quotes that I want to see, that are relevant to my site. Here's what I've done:
Created text file with quotes (myfile). Ran strfile -r myfile. Changed procedure in slashd to:
sub newmotd {
chomp(my $t = `/usr/games/fortune myfile`);
setblock('motd', $t) if $t;
}
Additionally, I'm running Slash 1.0.9 (Slashhosting.com). This works for the first few quotes, but then starts retrieving quotes from the default database. I can't figure out what's happening, and I've read all the FMs. Does anyone have any advice?
Created text file with quotes (myfile). Ran strfile -r myfile. Changed procedure in slashd to:
sub newmotd {
chomp(my $t = `/usr/games/fortune myfile`);
setblock('motd', $t) if $t;
}
Additionally, I'm running Slash 1.0.9 (Slashhosting.com). This works for the first few quotes, but then starts retrieving quotes from the default database. I can't figure out what's happening, and I've read all the FMs. Does anyone have any advice?
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.



Well I posted this a long time ago... (Score:1)
Replace the part that says '/usr/games/fortune myfortunes' with '/usr/games/fortune 100% myfortunes'
This seems to be working for me so far, even though it didn't work the first time around...
~~~~~~~~~~~~~~~~~~~
EDUSlash - We put the EDU in