Re: open controlling terminal from cron
From: Floyd Davidson (floyd_at_barrow.com)
Date: 09/07/03
- Previous message: Charles Carrano: "open controlling terminal from cron"
- In reply to: Charles Carrano: "open controlling terminal from cron"
- Next in thread: Chuck Dillon: "Re: open controlling terminal from cron"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Charles Carrano: "open controlling terminal from cron"
- In reply to: Charles Carrano: "open controlling terminal from cron"
- Next in thread: Chuck Dillon: "Re: open controlling terminal from cron"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|