Hi!
I can't get accountnig to work! Everytime I include anything on the :as line I
get no printout whatsoever! I even tried with a tiny script that just echoed the
commandline and then indicated JSUCC, same result.
I sniffed the network during my tries and deamon the doesn't even try to connect
to the printer! I can't see any packets going from the computer to the printer, not
even a SYN-packet. Despite this, the log claims that it does try to open the
connection. This is what it says: 'opening device X.X.X.X%9100...', but nothing
happens.
In a final, desperate, attempt I did a 'truss' (trace system calls and signals)
run on the deamon and as far as I can tell, it is stuck in trying to access some
file named /etc/.syslog_door as well as trying to access various files in
/var/nis/.
My printcap:
-----
nisse:client
:cm=Testskrivare
:force_localhost@
:rm=radsvinn.cs.lth.se
:sh:mx=0:mc=0
nisse:server
:lp=lib.cs.lth.se%9100
:ifhp=model=hp4050,of_options=sync pagecount waitend
:filter=/usr/libexec/filters/ifhp
:sd=/var/spool/lpd/%P
:af=acct
:as=|/usr/libexec/filters/null.csh start -Tdebug
:ae=|/usr/libexec/filters/accounting.pl end -Tdebug
:of=/usr/libexec/filters/ifhp
:sh:mx=0:mc=0
-----
Here is an extract from my tracing of the program around the problem (I think).
I don't know if it'll help but I include it anyway. The full trace of a working
as well as a non-working run can be sent on request.
Here we go:
-----
...
14299: open("/var/nis/NIS_SHARED_DIRCACHE", O_RDONLY) = 7
14299: fstat(7, 0xFFBECD88) = 0
14299: mmap(0x00000000, 2180, PROT_READ, MAP_SHARED, 7, 0) = 0xFF260000
14299: close(7) = 0
14299: getpid() = 14299 [14297]
14299: putmsg(10, 0xFFBECE54, 0xFFBECF8C, 0) = 0
14297: sigsuspend(0xFFBEE198) (sleeping...)
14299: poll(0x000B6A1C, 1, 15000) = 1
14299: getmsg(10, 0xFFBECE50, 0x00097960, 0xFFBECE7C) = 0
14299: munmap(0xFF260000, 2180) = 0
14299: open("/var/nis/NIS_SHARED_DIRCACHE", O_RDONLY) = 7
14299: fstat(7, 0xFFBECE20) = 0
14299: mmap(0x00000000, 2180, PROT_READ, MAP_SHARED, 7, 0) = 0xFF260000
14299: close(7) = 0
14299: getpid() = 14299 [14297]
14299: getuid() = 0 [1]
14299: fstat(8, 0xFFBECFA8) = 0
14299: getpid() = 14299 [14297]
14299: getuid() = 0 [1]
14299: fstat(8, 0xFFBECFA8) = 0
14299: open("/dev/udp", O_RDWR) = 7
14299: ioctl(7, I_FIND, "timod") = 0
14299: ioctl(7, I_PUSH, "timod") = 0
14299: sigprocmask(SIG_SETMASK, 0xFFBECDA4, 0xFFBECD94) = 0
14299: ioctl(7, I_STR, 0xFFBECC10) = 0
14299: ioctl(7, I_STR, 0xFFBECC10) = 0
14299: sigprocmask(SIG_SETMASK, 0xFFBECD94, 0x00000000) = 0
14299: ioctl(7, I_FLUSH, FLUSHRW) = 0
14299: sigprocmask(SIG_SETMASK, 0xFFBECDA8, 0xFFBECD98) = 0
14299: ioctl(7, I_STR, 0xFFBECD10) = 0
14299: sigprocmask(SIG_SETMASK, 0xFFBECD98, 0x00000000) = 0
14299: ioctl(7, I_STR, 0xFFBECC20) = 0
14299: getpid() = 14299 [14297]
14299: ioctl(7, I_STR, 0xFFBECC6C) = 0
14299: fcntl(7, F_SETFD, 0x00000001) = 0
14299: stat("/etc/rpcsec/nisplussec.conf", 0xFFBEC940) Err#2 ENOENT
14299: brk(0x000D70B8) = 0
14299: brk(0x000D90B8) = 0
14299: getuid() = 0 [1]
14299: getuid() = 0 [1]
14299: fstat(7, 0xFFBEC210) = 0
14299: fstat(6, 0xFFBEBF58) = 0
14299: time() = 992608451
14299: getpid() = 14299 [14297]
14299: putmsg(6, 0xFFBEB610, 0xFFBEB604, 0) = 0
14299: open("/etc/.syslog_door", O_RDONLY) = 11
14299: door_info(11, 0xFFBEB548) = 0
14299: getpid() = 14299 [14297]
14299: door_call(11, 0xFFBEB530) = 0
14299: close(11) = 0
14299: close(7) = 0
14299: open("/tmp/.rpc_door/.rpc_100029.2", O_RDONLY) = 7
14299: door_info(7, 0xFFBEC220) = 0
14299: getpid() = 14299 [14297]
14299: getpid() = 14299 [14297]
14299: fstat(7, 0xFFBEC20C) = 0
14299: fcntl(7, F_SETFD, 0x00000001) = 0
14299: door_call(7, 0xFFBEC2E8) = 0
14299: getpid() = 14299 [14297]
14299: getuid() = 0 [1]
14299: fstat(8, 0xFFBEBBC0) = 0
14299: putmsg(8, 0xFFBEBB94, 0xFFBEBCCC, 0) = 0
14299: poll(0x000B2994, 1, 15000) = 1
14299: getmsg(8, 0xFFBEBB90, 0x00097328, 0xFFBEBBBC) = 0
14299: getuid() = 0 [1]
14299: getgid() = 12 [12]
14299: fstat(7, 0xFFBECFA4) = 0
14299: fcntl(7, F_SETFD, 0x00000001) = 0
14299: putmsg(7, 0xFFBECF7C, 0xFFBED0B4, 0) Err#9 EBADF
14299: semctl(0, 0, 6, 0xFFBECFB6) = 0
14299: fstat(10, 0xFFBECF30) = 0
14299: getpid() = 14299 [14297]
14299: putmsg(10, 0xFFBECE44, 0xFFBECF7C, 0) = 0
14299: poll(0x000B6A1C, 1, 15000) = 1
14299: getmsg(10, 0xFFBECE40, 0x00097960, 0xFFBECE6C) = 0
14299: getpid() = 14299 [14297]
14299: getuid() = 0 [1]
14299: fstat(8, 0xFFBECFA8) = 0
14299: fstat(7, 0xFFBECF48) = 0
14299: sigprocmask(SIG_SETMASK, 0xFFBECF40, 0xFFBECF30) = 0
14299: close(7) = 0
14299: sigprocmask(SIG_SETMASK, 0xFFBECF30, 0x00000000) = 0
14299: getpid() = 14299 [14297]
14299: getuid() = 0 [1]
14299: fstat(8, 0xFFBECFA8) = 0
14299: fstat(6, 0xFFBECF00) = 0
14299: time() = 992608451
14299: getpid() = 14299 [14297]
14299: putmsg(6, 0xFFBEC5B8, 0xFFBEC5AC, 0) = 0
14299: open("/etc/.syslog_door", O_RDONLY) = 7
14299: door_info(7, 0xFFBEC4F0) = 0
14299: getpid() = 14299 [14297]
14299: door_call(7, 0xFFBEC4D8) = 0
14299: close(7) = 0
14299: alarm(0) = 0
14299: sigaction(SIGALRM, 0xFFBED068, 0xFFBED118) = 0
14299: sigprocmask(SIG_BLOCK, 0xFFBED108, 0xFFBED0F8) = 0
14299: alarm(4) = 0
14299: sigsuspend(0xFFBED0E8) (sleeping...)
14299: Received signal #14, SIGALRM, in sigsuspend() [caught]
14299: sigsuspend(0xFFBED0E8) Err#4 EINTR
14299: setcontext(0xFFBECDD0)
14299: alarm(0) = 0
14299: sigprocmask(SIG_UNBLOCK, 0xFFBED108, 0x00000000) = 0
14299: sigaction(SIGALRM, 0xFFBED068, 0x00000000) = 0
14299: munmap(0xFF260000, 2180) = 0
14299: open("/var/nis/NIS_SHARED_DIRCACHE", O_RDONLY) = 7
14299: fstat(7, 0xFFBECE20) = 0
14299: mmap(0x00000000, 2180, PROT_READ, MAP_SHARED, 7, 0) = 0xFF260000
14299: close(7) = 0
...
-----
and then it just goes on like that until I killed it...
Can anyone figure out what I'm doing wrong?
/Paul Reinerfelt
Research student of Computer Science in Lund, Sweden
http://www.cs.lth.se/home/Paul_Reinerfelt/
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------