Click to See Complete Forum and Search --> : associate EPL file with script to output to LPT1


JustinH
02-22-2006, 04:44 PM
Quick question, probably an easy answer.

I need to get firefox to associate EPL (label printers format) with a script file.

I need the script file to print directly to LPT1.

The script would see the epl file, then save it to a temp directory (probably the internet cache directory), then it would print it right away to lpt1.

Can someone whip something up?

I'd be eternally grateful.

Justin

bwkaz
02-22-2006, 07:57 PM
On Linux?

Because AFAIK, Linux doesn't have any kind of "association" thingy like Windows does. Your distro (or more specifically, your desktop environment) might, but I don't know how any of those work. ;) What I'd do in your case is just download the file somewhere, and:

cat /path/to/file/I/saved >/dev/lp0

(After ensuring I have permission to write to /dev/lp0, that is. You may have to add yourself to the "printer" or "lp" group, then log out/log in for it to take effect.)