🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fa.sco-list
Article #1

Re: Writting to Active Console

#1
From: Ronald S H Khoo
Date: Tue, 02 Oct 1990 03:39
58 lines
3262 bytes
[ Is there a particularly good reason why this discussion can't go on in 
  comp.unix.xenix or some such similar newsgroup ? I'm crossposting this
  to comp.unix.xenix.sco and comp.unix.sysv386.  Sorry Dave :-) ]

[ why does mail to dma@daves.uucp bounce ? Use Reply-To: please! ]

In article <9010011904.AA14210@uunet.uu.net> daves!dma writes:

[ trying to get a message printed to whatever multiscreen(TM) is currently
  active.  I suggested /dev/[ecv]ga as appropriate ]

>  echo "test message" >/dev/vga
> It worked great!  Then I did the same thing using an 'at 1413' command.
> >sh: /dev/vga: cannot create
> I then check the permissions on /dev/vga, everything looks fine:

I just tried it (SCO Unix 3.2.0) and found the same problem.
How most peculiar.  BTW Do any of the other peecee unices have the
/dev/[evc]ga equivalents ?

Opening /dev/[vce]ga seems to fail ENXIO if you haven't got a controlling
terminal.  *any* controlling terminal seems to do (try logging on to
a serial terminal and echo foobar > /dev/vga -- that works)
This is a *bug*.  Or maybe a feature.  I just tried this test program
from at(C) and it does successfully write the second Hello World message to
/dev/cga (I got a compaq monochrome :-( but it's better than a normal
cga :-) -- /dev/ttya02 is a spare terminal port I made 666 with nothing
else on it just for the purpose of this test.

main()
{
	int i;

	/* write to /dev/cga THIS ONE WILL FAIL */
	i = open("/dev/cga", 1);
	if (i < 0) perror("/dev/cga"); else write(i, "Hello world 1\n", 14);

	/* make /dev/ttya02 our controlling terminal.  KLUDGE ALERT */
	/* /dev/ttya02 has been made available for the purposes of this test */
	setpgrp();
	if (open("/dev/ttya02", 0) < 0) perror("/dev/ttya02");

	/* now write to /dev/cga again -- this one succeeds */
	i = open("/dev/cga", 1);
	if (i < 0) perror("/dev/cga"); else write(i, "Hello world 2\n", 14);
}

dd if=/dev/flame of=/dev/SCO bs=1024k count=2048

I'm sure SCO tech support have an answer to this ?
I'd like a fix for BOTH on Sys V/386 *and* Xenix please. :-)
Yes.  I'm *greedy*.  But you knew that already :-) :-) :-)

-- 
   ronald@robobar.co.uk | +44 81 991 1142 (O) | +44 71 229 7741 (H) | YELL!
   "Nothing sucks like a VAX"   --   confirmed after recent radiator burst!
Hit 'R' <RETURN> to continue .....
Technical Details
Message-ID: <9010012239.AA02391@robobar.Co.Uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.sysv386.mbox.zip!gmdzi!unido!mcsun!sunic!nuug!ifi!owner-sco-list@uunet.uu.net

Show Full Headers
Complete Article Headers
Message-ID: <9010012239.AA02391@robobar.Co.Uk>
Subject: Re: Writting to Active Console
Date: Tue, 02 Oct 1990 03:39:25 +0000
From: ronald@robobar.co.uk (Ronald S H Khoo)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.sysv386.mbox.zip!gmdzi!unido!mcsun!sunic!nuug!ifi!owner-sco-list@uunet.uu.net
Newsgroups: comp.unix.xenix.sco,comp.unix.sysv386,fa.sco-list
Organization: Robobar Ltd., Perivale, Middx., ENGLAND.
Lines: 57
Posted: Tue Oct 2 04:39:25 1990
Nntp-Posting-Host: ifi.uio.no
In-Reply-To: <9010011904.AA14210@uunet.uu.net>
To: dma@pcssc.com
Cc: sco-list@uunet.uu.net
Return-Path: <owner-sco-list@uunet.uu.net>
X-Mailer: Mail User's Shell (7.1.1 5/02/90)
Originator: daemon@ifi.uio.no