mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-11-27 20:21:56 +01:00
ftp
This commit is contained in:
parent
c2e5e8fc2c
commit
58ba443128
@ -4,6 +4,8 @@
|
|||||||
- [https://www.howtoforge.com/tutorial/how-to-use-ftp-on-the-linux-shell/](https://www.howtoforge.com/tutorial/how-to-use-ftp-on-the-linux-shell/)
|
- [https://www.howtoforge.com/tutorial/how-to-use-ftp-on-the-linux-shell/](https://www.howtoforge.com/tutorial/how-to-use-ftp-on-the-linux-shell/)
|
||||||
|
|
||||||
**bash-Beispiel**
|
**bash-Beispiel**
|
||||||
|
![../tools-technics/ftpanweisungen.jpg](../tools-technics/ftpanweisungen.jpg)
|
||||||
|
|
||||||
```
|
```
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
ftpHost="ftp.blaueierschwimmen.ch"
|
ftpHost="ftp.blaueierschwimmen.ch"
|
||||||
|
@ -5,30 +5,10 @@
|
|||||||
### FTP
|
### FTP
|
||||||
|
|
||||||
- [https://www.howtoforge.com/tutorial/how-to-use-ftp-on-the-linux-shell/](https://www.howtoforge.com/tutorial/how-to-use-ftp-on-the-linux-shell/)
|
- [https://www.howtoforge.com/tutorial/how-to-use-ftp-on-the-linux-shell/](https://www.howtoforge.com/tutorial/how-to-use-ftp-on-the-linux-shell/)
|
||||||
- HOST: ftp.haraldmueller.ch
|
|
||||||
- USER: schoolerinvoices
|
|
||||||
- PASS: Berufsschule8005!
|
|
||||||
|
|
||||||
*bash-Beispiel*
|
*bash-Beispiel*
|
||||||
```
|
![./ftpanweisungen.jpg](./ftpanweisungen.jpg)
|
||||||
#!/bin/bash
|
|
||||||
ftpHost="ftp.blaueierschwimmen.ch"
|
|
||||||
ftpUser="schoolerinvoices"
|
|
||||||
ftpPass="Berufsschule8005!"
|
|
||||||
ftpDir="data"
|
|
||||||
localDir="daten"
|
|
||||||
|
|
||||||
ftp -i $ftpHost << INPUTBLOCK
|
|
||||||
quote USER $ftpUser
|
|
||||||
quote PASS $ftpPass
|
|
||||||
passive
|
|
||||||
cd $ftpDir
|
|
||||||
lcd $localDir
|
|
||||||
mget *.*
|
|
||||||
close
|
|
||||||
bye
|
|
||||||
INPUTBLOCK
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
### E-Mail
|
### E-Mail
|
||||||
|
BIN
m122/tools-technics/ftpanweisungen.jpg
Normal file
BIN
m122/tools-technics/ftpanweisungen.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 79 KiB |
@ -1,6 +1,6 @@
|
|||||||
ftp
|
ftp
|
||||||
|
|
||||||
open ftp.haraldmueller.ch
|
open ftp.haraldmueller.ch
|
||||||
schoolerinvoices
|
schoolerinvoices
|
||||||
Berufsschule8005!
|
Berufsschule8005!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user