Re: open controlling terminal from cron

From: Floyd Davidson (floyd_at_barrow.com)
Date: 09/07/03

  • Next message: James T. Dennis: "Re: system cracked, /bin problems"
    Date: 07 Sep 2003 12:17:48 -0800
    
    

    c.carrano@att.net (Charles Carrano) wrote:
    >Is it possible to open a controlling terminal
    >(for output only) via cron? I'd like to dedicate
    >/dev/tty1, for example, on my linux (RH 9.0) box
    >to the ncurses display of a program written in C
    >that requires no user input. Is this possible?
    >
    >For the curious, my intention is to use the linux
    >box as a real-time measurement/display system, where
    >the console is dedicated to showing GPS measurements
    >acquired from a receiver through the serial port.
    >
    >Thanks!

    It wouldn't necessarily be opening a controlling terminal,
    but you certainly can display program output by writing
    to /dev/tty1, or any other /dev/tty?.

    You might want to look at other ways to invoke your program
    too. Cron works nicely for a program invoked at intervals,
    but what you are doing sounds more like something that would
    be run continuously. It could either be run as a daemon
    process started at boot up via a one of the rc scripts,
    or probably best of all as a process started by init from
    the /etc/inittab file.

    -- 
    Floyd L. Davidson           <http://web.newsguy.com/floyd_davidson>
    Ukpeagvik (Barrow, Alaska)                         floyd@barrow.com
    

  • Next message: James T. Dennis: "Re: system cracked, /bin problems"

    Relevant Pages

    • Re: open controlling terminal from cron
      ... c.carrano@att.net (Charles Carrano) wrote: ... I'd like to dedicate ... >to the ncurses display of a program written in C ... Cron works nicely for a program invoked at intervals, ...
      (comp.unix.programmer)
    • Re: Ncurses output started from cron
      ... > measurements on the screen, ... > is for the ncurses display to start automatically ... > controlling terminal), and for cron to ... > from within a script run by cron, ...
      (comp.unix.admin)