Skip site navigation (1)Skip section navigation (2)
Date:      19 Nov 2003 10:26:16 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        "M.D. DeWar" <mark@s-wit.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: what is this for
Message-ID:  <44he105qhz.fsf@be-well.ilk.org>
In-Reply-To: <00ba01c3aeaf$39bf8b30$fa65a8c0@ocfl061>
References:  <200310111243.08231.jason@dictos.com> <035501c3909c$3d1dd8d0$a4b826cb@goo> <001c01c3a082$afab7d30$0100000a@Biggie> <200311021458.49682.malcolm.kay@internode.on.net> <1067814513.825.497.camel@verdammt.falcotronic.net> <44ad7dimrc.fsf@be-well.ilk.org> <1067898777.825.714.camel@verdammt.falcotronic.net> <000d01c3a8a0$73b807a0$fa65a8c0@ocfl061> <3FB15FF9.4020606@daleco.biz> <009701c3a97d$9604d0d0$0100000a@Biggie> <3FB3A55A.9000406@daleco.biz> <00ba01c3aeaf$39bf8b30$fa65a8c0@ocfl061>

next in thread | previous in thread | raw e-mail | index | archive | help
"M.D. DeWar" <mark@s-wit.net> writes:

> [ -x /usr/games/fortune ] && /usr/games/fortune freebsd-tips
> 
> why and what is this command for.
> I found it in the /home/user directory in the .profile file.
> 
> no such thing in usr/games.
> no errors in the message files
> and searching freebsd ports shows no game called fortune.
> 
> I assume its a x game but why is it listed ?

It's the "fortune cookie" program.  That statement is there to give a
"FreeBSD tip" (piece of information) to users when they log in.

The first clause in that line makes sure the program is installed
before running it; so if you don't have it, you won't get any errors.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44he105qhz.fsf>