Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Redirect TCP data to usb raw printer

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
komodo
Posts: 1
Joined: 2019-09-09 00:06

Redirect TCP data to usb raw printer

#1 Post by komodo »

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

User avatar
ruwolf
Posts: 623
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 35 times
Been thanked: 26 times

Re: Redirect TCP data to usb raw printer

#2 Post by ruwolf »

Can packages.debian.org: usbip not help you?

Post Reply