Hacker News new | ask | show | jobs
by syndicatedjelly 537 days ago
You can write your own script to do this. It's a few lines of scripting to query whatever APIs you want, and then output to /dev/usb0 or wherever the printer is hooked up. Seems a bit unnecessary to add an extra API wrapper just to do that

You can test this right now by running `echo "Hello, world!" > /dev/usb0`, assuming a printer is connected to that USB port of your Unix-based device.

https://unix.stackexchange.com/questions/141016/a-laymans-ex...

1 comments

Interesting.i have always known usb0 exists but didnt think this would work. Now i am wondering what the equivalent command to print using bluetooth printers is.