This commit is contained in:
Harald Mueller 2022-06-07 12:47:28 +02:00
parent c2e5e8fc2c
commit 58ba443128
4 changed files with 5 additions and 23 deletions

View File

@ -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/)
**bash-Beispiel**
![../tools-technics/ftpanweisungen.jpg](../tools-technics/ftpanweisungen.jpg)
```
#!/bin/bash
ftpHost="ftp.blaueierschwimmen.ch"

View File

@ -5,30 +5,10 @@
### 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/)
- HOST: ftp.haraldmueller.ch
- USER: schoolerinvoices
- PASS: Berufsschule8005!
*bash-Beispiel*
```
#!/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
```
![./ftpanweisungen.jpg](./ftpanweisungen.jpg)
### E-Mail

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

View File

@ -1,6 +1,6 @@
ftp
open ftp.haraldmueller.ch
open ftp.haraldmueller.ch
schoolerinvoices
Berufsschule8005!