Trouble printing raw from browser (maybe my lack of bash knowledge)
Hi Guys,
I'm trying to send raw data to a printer from firefox. I think the best way to do this is with shell script.
I need to be able to send a text stream (which includes binary control chars) to an external file untouched (ie: not PS'ed). I've tried pointing firefox to a shell script that looks for input either as arguments or from stdin and nothing seems to be getting passed in.
How can I get this data out of the browser unscathed?
FYI: The aim of this is to send data to a thermal receipt printer.
TIA, Karl.
----------------------
Script:
#!/bin/bash
echo $1>one.txt
echo $2>two.txt
while read line
do
echo $line >> out.txt
done
|