adding fcron job

This commit is contained in:
frankknoll
2022-03-10 12:53:45 +01:00
parent 8fe0b812ad
commit f9fe240bb0
4 changed files with 8 additions and 12 deletions

1
.gitignore vendored
View File

@@ -2,6 +2,7 @@ src/VAERS/
src/intensivstationen/zeitreihe-tagesdaten.csv
src/intensivstationen/geckodriver.log
src/intensivstationen/Intensivstationen.nbconvert.ipynb
src/intensivstationen/Intensivstationen.nbconvert.html
.ipynb_checkpoints/
.history/
src/tmp/

View File

@@ -42,21 +42,12 @@ u039k20a
039K20A and 032
039K20A, 011L20
Diesen Befehl ausfüren:
jupyter nbconvert --to notebook --execute /home/frankknoll/Dokumente/Corona/projects/HowBadIsMyBatch-pages/src/intensivstationen/Intensivstationen.ipynb
man 5 fcrontab
fcrontab -e
SHELL=/bin/bash
@ 3 /home/frankknoll/.local/bin/jupyter nbconvert --to notebook --execute /home/frankknoll/Dokumente/Corona/projects/HowBadIsMyBatch-pages/src/intensivstationen/Intensivstationen.ipynb
@ 2 /home/frankknoll/.local/bin/jupyter nbconvert --to notebook --execute /home/frankknoll/Dokumente/Corona/projects/HowBadIsMyBatch-publish/src/tmp/test.ipy>
@ 1 echo "Hello" >>/tmp/tst.txt
fcrontab -l
@ 3 /home/frankknoll/Dokumente/Corona/projects/HowBadIsMyBatch-pages/src/intensivstationen/intensivstationen.sh
systemctl status fcron
tail -f /var/log/syslog
echo "This is theasdfasdfasdf email body!" | mail -s "Subject of your email" -a "From: Knoll_Frank@web.de" Knoll_Frank@web.de

View File

@@ -412,7 +412,7 @@
"metadata": {},
"outputs": [],
"source": [
"publish()"
"# publish()"
]
}
],

View File

@@ -1,2 +1,6 @@
#!/bin/bash
/home/frankknoll/.local/bin/jupyter nbconvert --to notebook --execute /home/frankknoll/Dokumente/Corona/projects/HowBadIsMyBatch-pages/src/intensivstationen/Intensivstationen.ipynb | mail -s "FKK fcrontab" -r Knoll_Frank@web.de Knoll_Frank@web.de
cd /home/frankknoll/Dokumente/Corona/projects/HowBadIsMyBatch-pages/src/intensivstationen
jupyter nbconvert --to notebook --allow-errors --execute Intensivstationen.ipynb
jupyter nbconvert --to html Intensivstationen.nbconvert.ipynb
mailx -a 'Content-Type: text/html' -s "Intensivstationen" -r Knoll_Frank@web.de Knoll_Frank@web.de < Intensivstationen.nbconvert.html