Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] sudo echo
Date: Thu, 23 Mar 2006 23:11:32
Message-Id: 20060323222624.09182aa4@krikkit.digimed.co.uk
In Reply to: Re: [gentoo-user] sudo echo by Nick Rout
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

Attachments

File name MIME type
signature.asc application/pgp-signature