mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-11-24 02:31:58 +01:00
ftp
This commit is contained in:
parent
58ba443128
commit
67eaee71f4
@ -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
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
|
||||
*bash-Beispiel*
|
||||
<br>
|
||||
![./ftpanweisungen.jpg](./ftpanweisungen.jpg)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user