kagrecu
Group: Members
Posts: 7
Joined: May 2005 |
|
Posted: Aug. 23 2005,22:40 |
|
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.
eg #!/bin/sh vncviewer 192.168.1.102:3 "pipe in password here for the vncauth window"
i know, i know. this is dangerous, but i'm only going to do these types of things locally, behind a firewall
|