passing password to a command

Hi all,

I have the expect binaries in our boxes..

I want to pass a passwd to a command automatically without manual intervention using "/<path_of_expect>/expect/<version>/bin/autopasswd"

The below command will ask passwd in my script

 
cleartool rmtag -all <vob_tag>
#Some messages/Warnings will come here, then it'll ask passwd
Registry passwd:

Can any one please provide the way how to use the expect with the command to avoid asking passwd....:confused::confused:

Thanks in advance..

Regards,
VRN

Have a look at:
http://linuxgazette.net/100/misc/tips/sshtool.expect.txt

sorry... didnt get anything in the above link...
FYI.. i have the expect script in our binaries... i want to know that how to use it when a command asked for a passwd....?

Can you please provide the way??

Thanks in advance...

Regards,
VRN

anyone please help on above requirment....???

did you look at this line in the file provided at above link?

send_user "Sending file(s) to hosts WITHOUT a password...\n"