Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

this idiom should be encouraged:

   echo 0 | sudo tee /sys/class/leds/ath9k-phy0/brightness
rather than the style in the article:

   echo 0 > /sys/class/leds/ath9k-phy0/brightness   # needs root permissions


Thanks I've been doing dumb sudo sh -c ... stuff before.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: