usetee·14 ปีที่แล้ว·discussThat depends on what you expect, doesn't it? At any rate, you can easily do something likeecho 1 | sudo tee /proc/fooThis has the added bonus that you can replace "echo 1" with a complex script that may not be safe to run as root.
echo 1 | sudo tee /proc/foo
This has the added bonus that you can replace "echo 1" with a complex script that may not be safe to run as root.