Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!uunet!shelby!riacs!bradley From: bradley@riacs.edu (Brad Christofferson) Newsgroups: comp.protocols.appletalk Subject: update on Cap5 papif problem? Message-ID: <1991Feb2.133946@riacs.edu> Date: 2 Feb 91 21:39:46 GMT Sender: news@riacs.edu Reply-To: bradley@riacs.edu (Brad Christofferson) Organization: Research Institute for Advanced Computer Science Lines: 121 Originator: bradley@solstice.riacs.edu We are having trouble installing CAP to print from a Sun4 workstation to a laserwriter on appletalk. I sent out a previous message about it and have more information. Here is the original question: ============================== Subject: Cap5 papif problem? We are installing Cap on a Sun4 system with a localtalk network connected through a Kinetics AEG. The cap software appears to be operating correctly, we can see all the devices on our local zone with atlook. We can connect to the printer directly using tlw and have printed a test file that way. Anyone seen this one before?: psbanner: geo.arc.nasa.gov:matt Job: hosts.lpd Date: Wed Jan 30 18:05:11 1991 papif: Starting job for matt@geo.arc.nasa.gov at Wed Jan 30 18:05:12 1991 on pri nter Laserwriter II NTX 215:LaserWriter@* filter setup: child exec: Permission denied The transcript software was recently installed. We copied the filter files to a new location in /usr/local/cap and pointed lpr in that direction in the printcap file. Permissions look ok on the filter files for execution and ownership. The problem follows... Papif does an exec of a child process in part of the code. Before that section it looks like there is a debug option. We haven't tried to compile with the debug option set yet but that could be the next step. ======================================================================= We have compiled it with the debug option and now have more information. The log file shows: psbanner: geo.arc.nasa.gov:operator Job: hosts.lpd Date: Fri Feb 1 16:53:42 1 991 papif: Starting job for operator@geo.arc.nasa.gov at Fri Feb 1 16:53:44 1991 on printer Laserwriter II NTX 215:LaserWriter@* papif: bannerfirst yes, bannerlast no, verboselog yes papif: atpresponse timeout = 480 ticks (1/4 second units) papif: status watch lower time limit 10 seconds papif: rflowq = 8 packets, sflowq = 1 packets papif: strip control d's no, map carriage return to line feed no papif: accounting = yes, chargebanner yes, idlestuff yes, structured yes papif: reverse = papif: pstext = /local/tran/transcript/pstext papif: banner file = .banner papif: cap.printers = /etc/cap.printers papif: Forking /local/tran/transcript/pstext in front of current fork papif papif: Forking in front of current fork papif filter setup: child exec: Permission denied We also attempted to recreate the problem and think we came up with something although I am not sure why this is happening. We ran the psif filter script by hand with the -x option to see what exactly was happening. It got down to the end and was running papif and forking off a child process. At that point I think it was waiting for the file input. At least that is what I think lpd would have done. Instead of a file, I typed exec and got the same error message that we have been seeing in the log file. Here is what we did: sh -x /usr/local/cap/psif PATH=/bin:/usr/bin:/usr/ucb + export PATH afile= host= login= indent= length= width= prog=/usr/local/cap/psif + pwd cwd=/var/spool/ps1 + basename /var/spool/ps1 pname=ps1 PSLIBDIR=/local/tran/transcript REVERSE= VERBOSELOG=1 BANNERFIRST=1 BANNERLAST=0 BANNERPRO=/local/tran/transcript/banner.pro PSTEXT=/local/tran/transcript/pstext PSCOMM=/local/tran/transcript/pscomm + export PSLIBDIR VERBOSELOG BANNERFIRST BANNERLAST BANNERPRO REVERSE PSTEXT + test -r ./.options + test 0 != 0 PATH=/local/tran/transcript:/bin:/usr/bin:/usr/ucb + export PATH + basename /usr/local/cap/psif prog=psif comm=/usr/local/cap/papif -P ps1 -p psif -n -h + exec /usr/local/cap/papif -P ps1 -p psif -n -h papif: Starting job for -h@ at Sat Feb 2 13:40:22 1991 on printer Laserwriter I I NTX 215:LaserWriter@* papif: bannerfirst yes, bannerlast no, verboselog yes papif: atpresponse timeout = 480 ticks (1/4 second units) papif: status watch lower time limit 10 seconds papif: rflowq = 8 packets, sflowq = 1 packets papif: strip control d's no, map carriage return to line feed no papif: accounting = yes, chargebanner yes, idlestuff yes, structured yes papif: reverse = papif: pstext = /local/tran/transcript/pstext papif: banner file = .banner papif: cap.printers = /etc/cap.printers papif: Forking in front of current fork papif exec papif: Forking behind current fork filter setup: child exec: Permission denied papif: Finished job at Sat Feb 2 13:40:30 1991 with status 2 Does anyone have any clues about this? I tried to run trace on an lpr of a file but the lpd just hands off the control to another process and I can't trace what happens next. Methinks the problem is in the CAP software itself. It looks like the other CAP programs all work ok. I can see all the appletalk devices on the localtalk network. Maybe it is the transcript software... Brad Christofferson