Solved how to automate ftp transfer

August 22, 2011 at 01:07:44
Specs: linux
I wounder how to automate ftp file transfer using bash script of linux environment

See More: how to automate ftp transfer

Report •

#1
August 22, 2011 at 14:28:39
✔ Best Answer
#!/bin/bash

filename="/home/paul/myfile.tar.gz"
hostname="ftp.myhost.com"
username="username"
password="password"
ftp -un $hostname <<EOF
quote USER $username
quote PASS $password

binary
put $filename
quit
EOF

1/3 of highway deaths are caused by drunks. The rest are by people who can't drive any better than a drunk.


Report •

#2
August 22, 2011 at 22:32:50
ya .. i have tried that one .. it works .. thanks a lot .. what about schedule it in specific time of day and week .

Report •
Related Solutions


Ask Question