On Sat, Jan 24, 2004 at 01:23:10PM -0500, Matthew Miller wrote: > On Sat, Jan 24, 2004 at 06:13:46PM +1100, Ben Stringer wrote: > > > I'm trying to edit /etc/motd to include various things, say like kernel > > > version. Adding a line like `uname -r` doesn't work, it simply echoes > > > that instead of executing the command. Any way I can actually accomplish > > > this? > > I'd suggest adding some code to /etc/rc.local to write what you want. As > > Or, go a different route: instead of editing motd, put a little script in > /etc/profile.d that prints what you want. Be careful, when doing that, that you check that output is going to a terminal (with "test -t" or some equivalent) first. Unexpected spewage breaks things like scp. Cheers, Nalin