Sudo

From Notepedia
Jump to: navigation, search

Execute Sudo commands with no password prompt

use the echo command and -S flag:

echo <password> | sudo -S vim /etc/rc.local