osx - Autofill password in one command on Mac -


how autofill root password in single command on mac? want run following command computer not sleep while downloading, computer shutdown.

i run following still prompted password

$ caffeinate -u -t 7200 && echo | sudo -s shutdown -h now


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -