3 ms·
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
by syndicatedjelly 2y 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-explanation-for-everything-is-a-file-what-differs-from-windows https://unix.stackexchange.com/questions/141016/a-laymans-ex...
- jossephus01 2y agoInteresting.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.