printers - Can't WRite to /dev/usb/lp0 with Node.js -
i trying use node.js write printer @ "/dev/usb/lp0". using "cat" send files printer works fine writing directly printer using "vim". however, using fs.writefile() silently fails. code have tried is:
var fs = require('fs'); fs.writefile('/dev/usb/lp0', "test-data", { encoding: 'ascii', mode: '0o660' }, function( error ) { console.log( error ); });
notes: cannot use cups on system. also, printer raw printer.
any appreciated.
Comments
Post a Comment