*BSD News Article 25547


Return to BSD News archive

Xref: sserve comp.unix.shell:12822 comp.unix.questions:43759 comp.unix.misc:10767 comp.os.386bsd.questions:7695
Path: sserve!newshost.anu.edu.au!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!latcs1!ipc6.lat.oz.au!wongm
Newsgroups: comp.unix.shell,comp.unix.questions,comp.unix.misc,comp.os.386bsd.questions
Subject: How to direct cron output to a tty or pty ?
Message-ID: <CJ38vz.1Hr@latcs1.lat.oz.au>
From: wongm@ipc6.lat.oz.au (M.C. Wong)
Date: Tue, 4 Jan 1994 04:38:23 GMT
Sender: news@latcs1.lat.oz.au (news)
Organization: Comp Sci, La Trobe Uni, Australia
Lines: 21

Hi,
  I am writing some sort of alarming utils run from within xterm only, ie 
won't work on non-xterm environment. What happen is that, when a scheduled
event is activated at the right time, it will simple write a message to
the xterm's header as title , blinking and beeping, and at the moment I
resort to using escape sequence, ie : echo -n "]2;message" to change the
xterm header border! Also, I am using cron to do the stuff since the system
I run doesn't have at, but crond will direct any output of a scheduled
program to a file and mail it to the user, as a result my escape sequence
can not reflect the changes onto my xterm.

  If I get over this problem, many of the existing time-based utils can be 
changed to be invoked by this simple util. Also, non time-based utils can
be changed to run that way too, for example, biff and newmail!

  I wonder if there is anyway around this ? Thanks in advance, and email
replies please.

- wongm@latcs1.lat.oz.au (M.C Wong)
-- 
- wongm@latcs1.lat.oz.au