2022-06-07 10:49:46 +02:00
|
|
|
|
|
|
|
### 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/)
|
|
|
|
|
2022-06-07 10:53:10 +02:00
|
|
|
**bash-Beispiel**
|
2022-06-07 10:51:25 +02:00
|
|
|
```
|
2022-06-07 10:49:46 +02:00
|
|
|
#!/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
|
2022-06-07 10:51:25 +02:00
|
|
|
```
|
2022-06-07 10:49:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
### E-Mail
|
|
|
|
|
2022-06-07 10:58:29 +02:00
|
|
|
- [https://www.linuxfordevices.com/tutorials/linux/mail-command-in-linux](https://www.linuxfordevices.com/tutorials/linux/mail-command-in-linux)
|
|
|
|
- [https://www.geeksforgeeks.org/send-mails-using-a-bash-script](https://www.geeksforgeeks.org/send-mails-using-a-bash-script)
|