Geektools Shell Problem In order to monitor the filesystem activity on my computer, I found command "sudo fs_usage", which works very well in Terminal. Then I had the idea to display those system activities (written) on my desktop wallpaper. 

I downloaded the app "GeekTool" and created a "Shell" widget with the command:

echo "root password" | sudo -s fs_usage


But it doesn't work :(
You can circumvent the need to enter a password to use fs_usage by means of the sudoers file.

Warning: I am not a security expert in any way, and modification of the sudoers file should only be performed with extreme caution. I don't think this particular solution would be a security issue, but again, I’m not an expert.


Open Terminal, type sudo visudo, and enter your password.
Scroll down using the arrow keys to the “User privilege specification” section.
Look for a line that starts with your username, or failing that, one that starts with %admin.
Position the cursor just below that line and press A to enter insert mode.
Add the following text on its own line:

yourusername ALL=(root) NOPASSWD: /usr/bin/fs_usage

Press esc, then type :wq enter to save your changes and quit.


You will need to restart GeekTool. I don’t think you need to reboot for the changes to take effect, but if it doesn’t work, try that.