using rcp command

Hi All,

I am writing a shell script which will copy binaries from one remote server to local server.

I am using "rcp command". But "rcp" command asks for the login password when copying to local server.

Can anybody tell me how to pass the password through the shell script?

Thanks

Amit

Dear Amit,

try this

ftp -n -i -v <SERVERIP> <<-ftp_end > <DIR>/ftpstatus_Log
user <LOGIN> <password>
status
bin
lcd <DESTINATIONDIR>
cd <REMOTEDIR>
mget <as u want>
bye
ftp_end

Regards,
Pankaj

Thanks much Pankaj

Rgds,

amit