-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathftptest.sh
36 lines (20 loc) · 966 Bytes
/
ftptest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
HOST=ftp.pcshowme.com #This is the FTP servers host or IP address.
[email protected] #This is the FTP user that has access to the server.
PASS=l3tm31n #This is the password for the FTP user.
# Call 1. Uses the ftp command with the -inv switches. -i turns off interactive prompting. -n Restrains FTP from attempting the auto-login feature. -v enables verbose and progress.
cd /tmp
ftp -inv $HOST << EOF
user $USER $PASS
put test.txt
exit
#!/bin/bash
HOST=ftp.pcshowme.com #This is the FTP servers host or IP address.
[email protected] #This is the FTP user that has access to the server.
PASS=l3tm31n #This is the password for the FTP user.
# Call 1. Uses the ftp command with the -inv switches. -i turns off interactive prompting. -n Restrains FTP from attempting the auto-login feature. -v enables verbose and progress.
cd /tmp
ftp -inv $HOST << EOF
user $USER $PASS
put test.txt
exit