How to pass the pwd to an export command through script?

I have an export command which exports the file which I specify to the specified location. It asks for an pwd and again to confirm the pwd, can some one help me to pass the pwd thru the script.

cd /opt/var/SecureTransport/bin
xml_export /opt/SecureTransport/var/logs/accounts_log.xml
account123
account123

the account123 which appears twice is the pwd and the confirm pwd, I want to pass this thru the script.

No guarantee... still give it a shot...

echo -e "passwd1 \n passwd2" | xml_export  /opt/SecureTransport/var/logs/accounts_log.xml

--ahamed

No Luck. the enter password prompt goes in to indefinite loop.

try expect utility ..