Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 33dfbece authored by Kevin Yung's avatar Kevin Yung
Browse files

Rectification d'une typo + début test envoi de mail

parent 08f75dff
......@@ -18,7 +18,7 @@ dates=$(jq --raw-output ".result[] | .lastSeenAt" .gateways.json)
date=()
date=($dates)
state=()
full_date==()
full_date=()
d=()
for (( i=0; i<${#date[@]}; i++ ))
do
......
......@@ -7,10 +7,13 @@
# TODO /bin/bash
# TODO get TO for the .config.json
TO="XX.XX@univ-grenoble-alpes.fr YY.YY@univ-grenoble-alpes.fr"
#TO="XX.XX@univ-grenoble-alpes.fr YY.YY@univ-grenoble-alpes.fr"
TO="kevyung24@gmail.com"
SUBJECT="Monitoring Report"
CONTENT_TYPE="Content-type: text/html"
mail -a "$CONTENT_TYPE" -s "$SUBJECT" -u monitoring $TO <.gateways.html
mail -a "$CONTENT_TYPE" -s "$SUBJECT" -u monitoring $TO <.devices.html
#mail -a "$CONTENT_TYPE" -s "$SUBJECT" -u monitoring $TO <.gateways.html
#mail -a "$CONTENT_TYPE" -s "$SUBJECT" -u monitoring $TO <.devices.html
#mailx -a "$CONTENT_TYPE" -s "$SUBJECT" <.gateways.html "$TO"
mail -s "Test" kevyung24@gmail.com
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment