[ltp] Re: ACPI problem ...

Bill Wohler linux-thinkpad@linux-thinkpad.org
Fri, 25 Feb 2005 07:31:41 -0800


Romuald Fleury <romuald@rfleury.org> writes:

> alca@foo:/proc/acpi/ibm $ sudo echo "on" > light
> -bash: light: Permission denied

The redirection isn't done as root; the sudo command ends at the '>'
character.

The command above needs to be done like this:

  sudo sh -c 'echo "on" > light'

-- 
Bill Wohler <wohler@newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.