How to "script" an ftp session without .netrc file?

I need to "script" and ftp session, but I can't use the .netrc file to do it.

Can anyone tell me if this is possible? basically, I just need to automate about 20 ftp commands.

I am using bash shell script, but can use any other shell if necessary... I can't use perl/php, etc..

thanks!

 

 

 

 

Top