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

Instead of sudo sh -c to sudo the redirects, consider echo 'abcde' |sudo tee /proc/bla. Less nesting :)


Do you mean less syntactical nesting? The pipe to sudo tee creates a new child shell, just as sudo sh -c does.


Yes.




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

Search: