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,27 +40,13 @@ 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}" \
-d "${SUBJECT} ${MSG}" \
ntfy.sh/${DUFUS}
NAME=$(basename $FILETOSEND)