I've done some testing now and noticed that with the following
AppSocket settings on the printer:
Port Enabled: Yes
Language: Postscript
Host Access List: Unrestricted
Receive Window Size: 0
Send Window Size: 0
Filtering: None
Delayed Output Close: Off
I manage to get the pagecounter. When the option Language was set to
AUTO, I got the Connection refused error message.
The command I used was:
# ./ifhp -Tdev=tek560%9100,trace,debug=2,model=phaser <
/var/tmp/smalltest.ps 2>&1 | tee /var/tmp/log01
tek560 - IP name of printer
smalltest.ps - a small postscript document
log01 - the log file
When I sent the file I only got the following error message printed:
ERROR: undefined (COMMAND TYPE: nametype)
OFFENDING COMMAND: M "^AM"
OPERAND STACK: (0 total entries)
===top of stack===
...
When I examine the logfile I found the following:
...
ifhp 09:19:02.905 [27100] Send_job: job type 'POSTSCRIPT'
ifhp 09:19:02.907 [27100] Init_outbuf: Outbuf 0x40798, Outmax 10240, Outlen 0
ifhp 09:19:02.908 [27100] Init_job: language 'POSTSCRIPT'
ifhp 09:19:02.910 [27100] Init_job: after PJL ENTER ''
ifhp 09:19:02.911 [27100] Init_job: doing ps init
ifhp 09:19:02.913 [27100] Init_job: 'ps' and Topts
ifhp 09:19:02.914 [27100] Init_job: 'ps' and Zopts
ifhp 09:19:02.915 [27100] Init_job: final '^AM%!
ifhp 09:19:02.917 [27100] Write_out_buffer: write len 5, read_fd 1,
maxtimeout 0
ifhp 09:19:02.918 [27100] Write_out_buffer: timeout 0, len 5
ifhp 09:19:02.921 [27100] Write_out_buffer: left to write 0, flag 0
ifhp 09:19:02.922 [27100] Write_out_buffer: done, returning 0
...
ifhp 09:19:06.154 [27100] Write_out_buffer: write len 10240, read_fd
1, maxtimeout 0
ifhp 09:19:06.155 [27100] Write_out_buffer: timeout 0, len 10240
ifhp 09:19:06.157 [27100] Write_out_buffer: left to write 10240, flag 1
ifhp 09:19:06.158 [27100] Read_status_line: read fd 1, count 110,
'%%[ Error: undefined; OffendingCommand: ^AM ]%%
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%'
ifhp 09:19:06.160 [27100] Write_out_buffer: Read_status_line returned 110
ifhp 09:19:06.162 [27100] Check_device_status: error = 'undefined;'
ifhp 09:19:06.163 [27100] Check_device_status: offendingcommand = '^AM'
ifhp 09:19:06.166 [27100] Write_out_buffer: timeout 0, len 10240
ifhp 09:19:06.178 [27100] Write_out_buffer: left to write 0, flag 0
ifhp 09:19:06.179 [27100] Write_out_buffer: done, returning 0
...
Any help appreciated,
--
Lars-Gunnar Persson
System Administrator
Nansen Environmental and Remote Sensing Center
Address: Edvard Griegs vei 3a, N-5059 Bergen, NORWAY
Phone: +47 55 29 72 88, Fax: +47 55 20 00 50
E-mail: [EMAIL PROTECTED], Web: www.nrsc.no
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------