🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #10765

Re: Hardcopy of console system

#10765
From: Gregory N. Bond
Date: Wed, 08 Feb 1989 00:18
34 lines
1942 bytes
Enclosed is a little utility I hacked up to do something similar.  It is
run from our rc.local script:

	consolelog /dev/ttya /usr/logs/`hostname`

and logs all console messages to the named files.  If it is sent a SIGHUP
it will re-open all the files.  This allows a sequence like

	mv logfile logfile.old; kill -HUP pid

to trim the log.  The filename "-" is recognised as stdout and is not
reopened with a SIGHUP.

This was based on "contool" by Chuck Musciano.  (I have a similar feature
hacked into contool.)  Many thanks!

Shar and enjoy!!

Greg.
-- 
Gregory Bond, Burdett Buckeridge & Young Ltd, Melbourne, Australia
Internet: gnb@melba.bby.oz.au    non-MX: gnb%melba.bby.oz@uunet.uu.net
Uucp: {uunet,mnetor,pyramid,ubc-vision,ukc,mcvax,...}!munnari!melba.bby.oz!gnb

[[ The shar file has been placed in the archives under "sun-source".  It
is 10737 bytes long and is called "consolelog.shar".  It can be retrieved
via anonymous FTP from the host "titan.rice.edu" or via the archive
server.  For more information about the archive server, send a mail
message containing the word "help" to the address
"archive-server@rice.edu".  --wnl ]]
-- 
Gregory Bond, Burdett Buckeridge & Young Ltd, Melbourne, Australia
Internet: gnb@melba.bby.oz.au    non-MX: gnb%melba.bby.oz@uunet.uu.net
Uucp: {uunet,mnetor,pyramid,ubc-vision,ukc,mcvax,...}!munnari!melba.bby.oz!gnb
Technical Details
Message-ID: <77@melba.oz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
References: <8901111519.AA09900@rice.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: munnari!melba.oz.au!gnb@uunet.uu.net (Gregory N. Bond)
Newsgroups: comp.sys.sun
Subject: Re: Hardcopy of console system
Message-ID: <77@melba.oz>
Date: 8 Feb 89 00:18:14 GMT
References: <8901111519.AA09900@rice.edu>
Sender: usenet@rice.edu
Organization: Burdett, Buckeridge & Young Ltd, Melbourne
Lines: 34
Approved: Sun-Spots@rice.edu
Original-Date: 17 Jan 89 00:38:27 GMT
X-Sun-Spots-Digest: Volume 7, Issue 140, message 3 of 9