19 Feb
2007
19 Feb
'07
8:56 a.m.
"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, -- MJ Ray - see/vidu http://mjr.towers.org.uk/email.html Somerset, England. Work/Laborejo: http://www.ttllp.co.uk/ IRC/Jabber/SIP: on request/peteble.