🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.protocols.appletalk
Article #5907

Can lwsrv talk back to a mac?

#5907
From: Ken Spagnolo
Date: Sun, 21 May 1989 23:47
30 lines
2219 bytes
Hello,
Below is email that I sent to cck@columbia.edu.  Since I got no response,
I'm trying here.  Any info is appreciated.  Please send email to the
address below.  Thanx.
---------------------------------------------------------------------------

We are using lwsrv and papif to send print jobs thru a Pyramid to our
laser printer.  We would like to limit who can use this printer and toss
unauthorized jobs.  This part is not a problem.  However, we would like
to let the user know that nothing is going to come out the other end, and
here we have encountered difficulty.

It seems that the place in which lwsrv discovers who the user is occurs
at 'case TOK_FOR:' in getjob() in simple.c.  At this point I tried using
NewStatus() to get some appropriate message to the users screen (in this
case a Mac), but no go.  I also tried p_write(pf,"",0,TRUE), which is the
same thing sent if an invalid token is received, just to see if I could
get anything at all, but again nothing happened.  It seems that the Mac
is just not listening at this time.  When we print from the Mac directly
to the laser printer, all sorts of status messages appear on the Mac's
screen, for instance 'no paper tray'.  Thru lwsrv, we get no responses of
any kind.  The question then is, Can lwsrv talk back to the Mac and what
mechanism is used to do so?

==============================================================================
Ken Spagnolo, Systems Programmer, Comp.Ctr., Massey Univ, Palmerston Nth, N.Z.
CSnet/ACSnet/Internet: K.Spagnolo@massey.ac.nz       Phone: +64-63-69099 x8587
From North America: K.Spagnolo%massey.ac.nz@relay.cs.net  New Zealand = GMT+12
==============================================================================
Technical Details
Message-ID: <149@massey.ac.nz>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!munnari!vuwcomp!massey!KSpagnol

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!munnari!vuwcomp!massey!KSpagnol
From: KSpagnol@massey.ac.nz (Ken Spagnolo)
Newsgroups: comp.protocols.appletalk
Subject: Can lwsrv talk back to a mac?
Keywords: lwsrv
Message-ID: <149@massey.ac.nz>
Date: 21 May 89 23:47:40 GMT
Reply-To: KSpagnolo@massey.ac.nz (Ken Spagnolo)
Organization: Massey University, Palmerston North, New Zealand
Lines: 30