Try replacing your single ' with a double quote, the protect your inside
double quotes with backslashes:
curl -s -d "payload={\"text\":\"${URL}\"}" https://……;
Len
On Sun, 2017-02-26 at 03:58 -0700, @lbutlr wrote:
I have the following:
| curl -s -d 'payload={"text":"${URL}"}' https://……;
But the command is executed with the exact string ‘${URL}’, I assume because
it is inside single quotes.
How do I expand this?
signature.asc
Description: This is a digitally signed message part
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)rwth-aachen(_dot_)de
https://mailman.rwth-aachen.de/mailman/listinfo/procmail