[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Etch-backports and gpg problems (SOLVED)



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
mshapiro_42@yahoo.com




Reply to: