"Tim Green" timothy.j.green@gmail.com wrote:
On 2/18/07, Ted Harding ted.harding@nessie.mcc.ac.uk wrote:
sudo cat test.ps >/dev/lp0
This won't do what you expect. The pipe to /dev/lp0 will still be performed as you, not root. Extra quotes might help, but you'd have to consult the shell manual.
My usual trick is: cat test.ps | sudo tee /dev/lp0 >/dev/null
How do you eat yours?
Regards,