Jimmy Lantz <[EMAIL PROTECTED]> wrote: > I'm trying to run a shellscript during the rc (output to monitor connected > directly to server) > > But when I do a "clear" I get the following error > tput: no terminal type specified and no term eniviromental variable > > I also use the dialog utility ( /usr/bin/dialog ) but the output gets > totally screwed up. > > What I gather is that the terminal info hasent been set yet. > How do I set it?
You should set the TERM environment variable to the terminal that you're using as console. If you're using the syscons internal console, do this at the beginning of your script: export TERM=cons25 Otherwise (serial console or whatever) set it to the appro- priate terminal name, typically "vt100" or similar. > Any pointers to docs, howtos faqs are welcome The manpages should be obvious: clear(1) (which is the same as tput(1)) and termcap(5). Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message