> > > #!/bin/bash
> > > su root
> > > echo <password>
> > > kppp
> > >
>
> If you really want to do it this way, use an expect script. 


How do I write a expect script?
after su root, I gave the following... 
expect Password
send <password>

doesn't work... It says expect not a command and send not a command. 

TIA

Sukrit



----------------------------------------------
Find out more about this and other Linux India 
mailing lists at http://lists.linux-india.org/

Reply via email to