procmail
[Top] [All Lists]

Re: Expanding a variable in a pipe

2017-02-26 05:02:24
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?



Attachment: 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
<Prev in Thread] Current Thread [Next in Thread>