Re: open controlling terminal from cron

From: Louis Erickson (wwonko_at_rdwarf.com)
Date: 09/09/03


Date: Mon, 8 Sep 2003 22:15:55 +0000 (UTC)

Charles Carrano <c.carrano@att.net> wrote:

: Thank you very much. This is exactly what I wanted -- a way to start
: my ncurses-based program at boot, and restart it automatically if the
: program should crash. No cron needed!

Isn't Unix cool? =)

: I have noticed that running via inittab in this way causes me to lose
: some special characters (the ones that ncurses uses to draw boxes),
: versus running from the command line prompt. This is likely some
: kind of terminal misconfiguration, however, and is likely something
: I can figure out.

You may have to use a shell script to set your TERM environment variable
to the same value you use in your shell, and may need to run 'tset' to
get the terminal initialzied properly. Doing those should help get
ncurses to realize it's got line-drawing characters. Unless it's something
else that's wrong. =)

man tset for all the gory details.

-- 
Louis Erickson - wwonko@rdwarf.com - http://www.rdwarf.com/~wwonko/
Lost interest?  It's so bad I've lost apathy.


Relevant Pages

  • Re: open controlling terminal from cron
    ... my ncurses-based program at boot, and restart it automatically if the ... ncurses to realize it's got line-drawing characters. ... man tset for all the gory details. ... It's so bad I've lost apathy. ...
    (comp.unix.programmer)
  • Re: definition of terminal, et cetera
    ... > Thomas Dickey wrote: ... I'm reading the manual page of tset. ... Then I'd expect to see in /usr/local/lib some ncurses libraries, e.g., ... and a tset program in /usr/local/bin which depends on the ncurses library. ...
    (comp.unix.programmer)