how can i automate logging in when i'm writing little shell scripts? specifically, some examples would be to su to root, enter the root pwd and then do a find command on the whole filesystem. another would be to run a vncviewer with a certain ip, and pipe in the password automatically.