Kamaraju S Kusumanchi wrote:
David Fox wrote:
It might be worth mentioning that "sudo" doesn't work across pipes:
For instance:
sudo command_1 | command_2
The first command will be run as root, but the second will be run with
normal user permissions. You can probably get around that by enclosing
the entire pipechain in quotes, but there's sometimes when just
entering su for the command and exiting su when finished is easier.
hmmm... How about
sudo command_1 | sudo command_2
That's exactly the way I did it. Worked like a charm.
--
Marc Shapiro
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]