Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!uvaarpa!hub!arch From: arch@hub.cs.jmu.edu (Arch Harris) Newsgroups: comp.unix.xenix Subject: Re: Multiscreens - which one is active? Keywords: who Message-ID: <236@hub.cs.jmu.edu> Date: 26 Oct 89 16:56:23 GMT References: <11@dynasys.UUCP> <55@gutarman.UUCP> <41@van-bc.UUCP> Organization: James Madison University, Harrisonburg, VA 22807 Lines: 28 > In article <41@van-bc.UUCP>, sl@van-bc.UUCP (Stuart Lynne) responds > to article <55@gutarman.UUCP> robert@gutarman.UUCP () and > article <11@dynasys.UUCP> jessea@dynasys.UUCP (Jesse W. Asher - Sysadmin.) writes: > > You can also try things like: > echo "Hello - please call me" > /dev/mono > this will generally go to the active screen. Of course you will have to > figure out which of /dev/{[cepv]ga,mono} is actually available on your > system. This only works if one of the multiscreens is the controlling terminal (a fact that is NOT documented in SCO 2.2.2). If you're executing the `echo' command line above using `at' or `cron', there will be no controlling terminal and the attempt to open /dev/mono will fail. You need to write a program which calls `setpgrp', then opens a multiscreen which is not already been opened by any other process. Then your program can open and write to /dev/mono (or /dev/?ega). Arch Harris INTERNET: arch@hub.cs.JMU.EDU Dept of Computer Science UUCP: uunet!virginia!jmucshub!arch James Madison U. BITNET: fac_harris@JMUVAX1 Harrisonburg, VA 22807 Phone: (703) 568-6847 -- Arch Harris BITNET: FAC_HARRIS@JMUVAX1 Dept of Computer Science PHONE: (703) 568 6847 James Madison University Harrisonburg, VA 22807