This commit is contained in:
2022-07-01 14:53:17 +01:00
parent c7e9e40207
commit 77844f80aa
2 changed files with 4 additions and 22 deletions

View File

@ -40,24 +40,10 @@ FILETOSEND=$3
MYNAME=`uname -n`
MSG=/var/tmp/${THIS_SCRIPT}.msg.$$
#if [ -e ${ERROR} ]
# then
# echo "---error_log_start" >> ${MSG}
# cat ${ERROR} >> ${MSG}
# echo "---error_log_finish" >> ${MSG}
SUBJECT=" ${MYNAME} - ${SCRIPT}: "
# cat ${FILETOSEND} > ${MSG}.txt
# FILE='document=@'"${MSG}.txt"
# curl -X POST \
# -F ${FILE} \
# -F "chat_id=${TCHATID}" \
# -F "caption=${SUBJECT} ${MSG}" \
# https://api.telegram.org/bot${DUFUS}/sendDocument
# rm -f ${MSG}
curl \
-d "${SUBJECT} ${MSG}" \

View File

@ -40,12 +40,8 @@ MYNAME=`uname -n`
SUBJECT=" ${MYNAME} - ${SCRIPT}: "
# DROP='{"chat_id": "'"${TCHATID}"'", "text": " '"${SUBJECT}"' '"${MSG}"'"}'
# curl -X POST \
# -H 'content-type: application/json' \
# -d "${DROP}" \
# https://api.telegram.org/bot${DUFUS}/sendmessage
# rm -f ${MSG}
curl -d "${SUBJECT} ${MSG}" ntfy.sh/${DUFUS}
curl \
-d "${SUBJECT} ${MSG}" \
ntfy.sh/${DUFUS}