#!/bin/bash HOST='ftp.server.com' USER='name' PASSWD='password' DIR='/home/user/files/' REMOTE_DIR='/files/' cd "$DIR" ftp -v -i -n $HOST <