Redirect TCP data to usb raw printer

Kernels & Hardware, configuring network, installing services

Redirect TCP data to usb raw printer

Postby komodo » 2019-09-09 00:16

Hello Community,

I have a question for you:
How can I redirect the flow that comes to my tcp port 5677 on my printer /dec/usb/lp0
the printer is set as {generic, raw)
and all the data comes from different servers on the same port (5677)

so far I tried with

Code: Select all
cat /dev/tcp/10.0.0.1/5677 >/dev/usb/lp0

and
Code: Select all
dd if=/dev/tcp/10.0.0.1/5677 of=/dev/usb/lp0


Thank you
komodo
 
Posts: 1
Joined: 2019-09-09 00:06

Re: Redirect TCP data to usb raw printer

Postby ruwolf » 2019-09-14 20:05

Can packages.debian.org: usbip not help you?
User avatar
ruwolf
 
Posts: 392
Joined: 2008-02-18 05:04
Location: Slovakia, Banovce nad Bebravou, Matice slovenskej 1260/4-7


Return to System configuration

Who is online

Users browsing this forum: No registered users and 16 guests

fashionable