aktuelle.kurse/m122/LB_Einzelaufgabe_Projekt/README.md

34 lines
818 B
Markdown
Raw Normal View History

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 12:47:28 +02:00
![../tools-technics/ftpanweisungen.jpg](../tools-technics/ftpanweisungen.jpg)
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)