diff --git a/shared/_nfile b/shared/_nfile index 381832d..1c9f9e3 100755 --- a/shared/_nfile +++ b/shared/_nfile @@ -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) diff --git a/shared/_nmsg b/shared/_nmsg index 02d9282..6627a3c 100755 --- a/shared/_nmsg +++ b/shared/_nmsg @@ -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} \ No newline at end of file +curl \ + -d "${SUBJECT} ${MSG}" \ + ntfy.sh/${DUFUS}