#!/bin/bash #cd /home/ftptmp/ ftp -v -n 192.168.0.100 2121 <<EOF user test 2009 binary cd OUTBOX prompt find ./ -mmin -60|xargs -i mget {}cd .. cd INBOX put test.txt close bye EOF