ICE
TCP/IP Products => TCP-PLUS => Topic started by: stabi on May 19, 2004, 09:46:22 am
-
hi, i'm trying to print from a linux rh7.3 server but it seem icelpd won't came up.
icelp get the error wrong socket number 2346 and
commands answers ..
[root@lola xinetd.d]# telnet localhost 2346
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[root@lola xinetd.d]# icelpd
[root@lola xinetd.d]# icelpd -c
Icelpd - ICE.TCP Print Server.
Version 4.07b.
By Roman Oliynyk.
(C) 1994 James River Group, INC.
All rights reserved.
...
I've add the following line at /etc/services file
icelpd 2346/tcp # Ice lp service
and i've add a file named icelpd in /etc/xinetd.d with the following text in it
service icelpd
{
port=2346
socket_type = stream
protocol=tcp
user=root
server=/usr/bin/icelpd
type=UNLISTED
wait=no
id = icelpd-stream
}
i've restarted the xinetd service, i've restarted the server but icelpd won't came up
where is the mistake?
TIA
Stabi
-
Here is what I have for my xinetd file:
# default: on
# description: The icelpd server serves icelp sessions
service icelpd
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/bin/icelpd
log_on_failure += USERID
disable = no
}
-
thanks for the answer, I'll try it. Monday i'll give you the results.
-
Thanks, that works!
But .... Why does it queue 2 jobs instead of 1?
ok for the /usr/tmp dir but not on the windows printer queue!
-
It should only queue one unless whatever is sending the jobs to the spooler is sending a control file or font download also.
If you don't have icelp running on the PC you can look at the jobs in the /usr/tmp/whatever spool directory on the unix server to see what they look like.
Is the PC side working now too? If not check the spooler directory in the the icelp settings (should normally be /usr/tmp)
-
hi now I think icelp works fine but there is something don't work as I expected on linux-cups-icelp.
Normally (on scounix) our interface script generate 2 files, an xxx_0 with some control characters and a xxx_1 with the real file to print.
the matter is, it seems that the same control character with linux and cups are misunderstood by the printer.
for example the sequence \033(s10H\c works on unix not on linux.
-
more:
this is what i see in the unix file
^[(s10H
and this is from linux
\033(s10H\c
it seems as if control characters has been dealt as simple text
-
How are you generating those characters?
If you look at the file with the escape sequence in it with od, for example
od -tx1 filename
do you see the escape sequence 1b or 30 31 etc??
If you are using an echo command to generate the escape sequence, in linux's bash shell it requires the -e arg. i.e.
echo -e "\033(s10H\c"
-
yes, of course! I have totally forgotten to change the echo!
now all works!
Thanks a lot bob