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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -