I'm using Fedora 16 with a Brother DCP-150C printer connected via USB. Ich have absolutely no problems printing any document or text file via LibreOffice or Gedit. But, as soon as I try to redirect program output from any C program to my connected printer as follows
./myprog > /dev/usb/lp0
then nothing happens. Instead I get a 'bash: /dev/usb/lp0: Permission denied' message. Note that /dev/usb/lp0 is the device my printer is connected to.
Can anybody tell me please what I'm doing wrong or what do I should do that program redirection works on my machine.
Thank you in advance for your help.