vsftpd/client-install.sh

raw link view readme
1 yum install ftp -y
2
3 cat > ~/verification.sh << EOF
4
5 ftp -n $1 << EOF2
6 quote user user01
7 quote pass mypassword
8 get something_to_download.txt
9 quit
10 EOF2
11
12 cat something_to_download.txt
13
14 echo "upload content" > ~/something_to_upload.txt
15
16 ftp -n $1 << EOF2
17 quote user user01
18 quote pass mypassword
19 put something_to_upload.txt
20 ls
21 quit
22 EOF2
23
24 EOF
25 chmod +x ~/verification.sh
26