1 |
On Fri, 24 Mar 2006 09:45:16 +1200, Nick Rout wrote: |
2 |
|
3 |
> the elevation of privilege does not seem to survive the redirection. I |
4 |
> suspect you need to know more than I do about the way redirection is |
5 |
> handled by the shell to explain it. |
6 |
|
7 |
Redirection is applied before the command is executed, so you are |
8 |
redirecting the output of sudo. It's the same as if you'd typed |
9 |
|
10 |
sudo >>/some/file somecommand |
11 |
|
12 |
|
13 |
-- |
14 |
Neil Bothwick |
15 |
|
16 |
If you only have a hammer, you tend to see every problem as a nail. * |
17 |
Maslow |