#!/bin/bash ftp -inv serv_ip_address << EOF quote USER user_name quote PASS password cd /script binary get filename bye EOF