[thelist] Fortune in Linux
Anthony Baratta
Anthony at Baratta.com
Sat Feb 2 19:25:00 CST 2002
At 07:30 AM 2/2/2000, Ritwik Patra wrote:
>i) Getting a quote from "fortune-mod" everytime I log into
>my Linux r
>Box and
If you are using bash:
echo
if [ -f /usr/games/fortune ]; then
/usr/games/fortune
fi
echo
Edit to where the fortune program actually exists.
>ii) Getting a quote from fortune again in the home page of
>my INTRANET
>server.
Which language do you want to do this in? I think you might be able to do
it with SSI, but you'll better luck with Perl or PHP, IMHO.
---
Anthony Baratta
President
Keyboard Jockeys
"Conformity is the refuge of the unimaginative."
More information about the thelist
mailing list