bash Notification script help [Solved]
Posted: February 11th, 2020, 5:11 am
Hey there im not sure if this is the right place but im just trying to make a simple slack notifier
This posts to my channel fine, my issue is that 1,2 and 3 dont seem to be passed through to the script as arguments it just posts a literal $1 $(2) ${3}
can anyone see what i messed up.
I also try nzb-notify.py but that seemed to not post at all
thanks!
Code: Select all
#!/bin/bash
curl -X POST -H 'Content-type: application/json' --data '{"text":"*$1* \n*$(2)* \n${3}"}' https://hooks.slack.com/services/SECRET
can anyone see what i messed up.
I also try nzb-notify.py but that seemed to not post at all
thanks!