How to write to console

Doug Poland doug at polands.org
Fri Apr 4 08:57:51 PST 2003


On Fri, Apr 04, 2003 at 06:49:42AM -0800, Ben Collver wrote:
> Doug Poland wrote:
> 
> >Hello,
> >
> >I'd like to write to the "default" console of a -STABLE box.  In this
> >case, no one is logged in on that console/terminal. 
> >
> >The commands write, talk, and wall mention writing to a terminal of a
> >logged in user.  Ideally, I'd like to clear the screen and display an
> >80x25 message.
> >
> >Does anyone know how I can accomplish this?
> >
> > 
> >
> Try:
> 
> #!/bin/sh
> clear >/dev/console
> echo "
> Pretend this message is:
> 80 columns
> 25 rows
> " >/dev/console
> 
Thanks, that's just what I needed

-- 
Regards,
Doug


More information about the freebsd-questions mailing list