This commit is contained in:
Harald Mueller 2022-06-07 12:51:42 +02:00
parent 58ba443128
commit 67eaee71f4
2 changed files with 2 additions and 20 deletions

View File

@ -4,28 +4,9 @@
- [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**
<br>
![../tools-technics/ftpanweisungen.jpg](../tools-technics/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

View File

@ -8,6 +8,7 @@
*bash-Beispiel*
<br>
![./ftpanweisungen.jpg](./ftpanweisungen.jpg)