Reading data from dev usb lp0 linux

0 votes

 I have a label printer Wincode LP433 and can print using command

cat file.prn > /dev/usb/lp0

How I can read data from /dev/usb/lp0?

Apr 14, 2022 in Linux Administration by Soham
• 9,730 points
• 2,509 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

A simply call:

cat /dev/usb/lp0

This should work if your printer supports bi-directional communication via USB.

Tested with a Zebra label printer this way:
 

$> echo "~HQES" > /dev/usb/lp0 && cat /dev/usb/lp0 PRINTER STATUS ERRORS: 0 00000000 00000000 WARNINGS: 0 00000000 00000000

answered Apr 20, 2022 by Rahul
• 9,690 points

edited Mar 5, 2025

Related Questions In Linux Administration

0 votes
1 answer

How to create Logical Volume from Volume Group in Linux?

Hi@akhtar, You can use lvcreate command to create ...READ MORE

answered Jul 9, 2020 in Linux Administration by MD
• 95,460 points
• 3,687 views
0 votes
1 answer

How to remove write permission from a folder in Linux system?

Hi@akhtar, You can use chmod command to remove ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,460 points
• 4,670 views
0 votes
1 answer

How to capture Packets from Specific Interface in Linux?

Hi@akhtar, You can use tcpdump command in your ...READ MORE

answered Oct 3, 2020 in Linux Administration by MD
• 95,460 points
• 3,284 views
0 votes
1 answer

Capture packets from destination IP in Linux.

Hi@akhtar, To capture packets from destination IP, say you ...READ MORE

answered Oct 4, 2020 in Linux Administration by MD
• 95,460 points
• 1,645 views
0 votes
1 answer

Copy files from one Linux system to another Linux system.

Hi@akhtar, You can copy your files from one ...READ MORE

answered Oct 21, 2020 in Linux Administration by MD
• 95,460 points
• 2,667 views
0 votes
1 answer

I want to swap from AWS to linux.

Hi@Abdullah, Are you talking about swap partition in ...READ MORE

answered Dec 9, 2020 in Linux Administration by MD
• 95,460 points
• 1,645 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
• 3,085 views
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
• 3,349 views
0 votes
1 answer

Access progrs prompt without switching accounts

Use the following to get the postgres prompt ...READ MORE

answered Mar 22, 2019 in Database by Mahi
• 2,476 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP