Here’s how you automate FTP :
ftp -v -n hostname << EOF user usuario password bin put filename bye EOF
With thanks to this post.
Copyright (c) 2024 Michel Hollands