From: Stuart Levy <slevy@nc...> - 2002-06-26 14:46:28
Diego Zuccato <diego@...> wrote:
> echo -n 4>/proc/acpi/sleep
> does nothing.
> echo 4>/proc/acpi/sleep
> simply prints a blank line.
You are using bash or some sh-like shell, right?
If so, ``number>filename'' is a special redirection syntax.
There needs to be a blank between 4 and >, as in
echo 4 >/proc/acpi/sleep
or the shell will just open /proc/acpi/sleep on file descriptor 4,
and still send echo's output to stdout!