On Thu, 23 Mar 2006 23:12:38 +0000 David Morgan <[EMAIL PROTECTED]> wrote: > On 23:38 Thu 23 Mar , Renat Golubchyk wrote: > > Careful with those quotation marks - you might want to escape > > them ;-) I would use single quotes on the outside to avoid the > > confusion: > > > > sudo 'echo "app-portage/porthole ~*" > > >> /etc/portage/package.keywords' > > > > > Do that and it'll say > > sudo: echo "app-portage/porthole ~*" > >> /etc/portage/package.keywords: command not found > > This has been discussed on here before. > > The problem is that if you do `sudo echo foo > bar`, the echo is being > run as root, but the writing to bar isn't.
Alright, then run sudo bash -c 'echo some_string >> some_file' No problem here :) Cheers, Renat -- Probleme kann man niemals mit derselben Denkweise loesen, durch die sie entstanden sind. (Einstein)
signature.asc
Description: PGP signature