This commit is contained in:
Harald G. Mueller 2022-06-07 10:49:46 +02:00
parent 01975ed3e6
commit e566b10756

View File

@ -0,0 +1,32 @@
### 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