mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-11-27 20:21:56 +01:00
33 lines
557 B
Markdown
33 lines
557 B
Markdown
|
||
### 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
|
||
´´´
|
||
|
||
|
||
### E-Mail
|
||
|