ICE

Please login or register.

Login with username, password and session length
Advanced search  

News:

ICETCP.PRO and ICETCP.PLUS are compatible with Windows 11!

Author Topic: icelp problem  (Read 1983 times)

stabi

  • Full Member
  • ***
  • Posts: 11
  • Place Personal Text Here
icelp problem
« 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
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
icelp problem
« Reply #1 on: May 20, 2004, 12:52:37 pm »

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
}
Logged

stabi

  • Full Member
  • ***
  • Posts: 11
  • Place Personal Text Here
icelp problem
« Reply #2 on: May 21, 2004, 02:13:34 am »

thanks for the answer, I'll try it. Monday i'll give you the results.
Logged

stabi

  • Full Member
  • ***
  • Posts: 11
  • Place Personal Text Here
icelp problem
« Reply #3 on: May 24, 2004, 05:25:27 am »

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!
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
icelp problem
« Reply #4 on: May 24, 2004, 10:35:31 am »

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)
Logged

stabi

  • Full Member
  • ***
  • Posts: 11
  • Place Personal Text Here
icelp problem
« Reply #5 on: May 26, 2004, 02:48:37 am »

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.

Logged

stabi

  • Full Member
  • ***
  • Posts: 11
  • Place Personal Text Here
icelp problem
« Reply #6 on: May 26, 2004, 05:13:40 am »

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
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
icelp problem
« Reply #7 on: May 27, 2004, 11:01:35 am »

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"
Logged

stabi

  • Full Member
  • ***
  • Posts: 11
  • Place Personal Text Here
Re:icelp problem
« Reply #8 on: June 03, 2004, 04:59:53 am »

yes, of course! I have totally forgotten to change the echo!
now all works!
Thanks a lot bob
Logged
 

Page created in 0.052 seconds with 17 queries.