Forum: NGINX Passing arguments to os.execute()

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
2974d09ac2541e892966b762aad84943?d=identicon&s=25 tsunny (Guest)
on 2014-06-19 08:58
(Received via mailing list)

How to send the value of a variable to a shell program using

I want to send the value of $uri to my shell program. Below is my code,

location / {

   set_by_lua $result 'os.execute("/tmp/ $uri")';


If I access $1 in my program, the value is just 'uri' not the value of

Can please anyone tell me how to do this correctly.


Posted at Nginx Forum:,251038,251038#msg-251038
This topic is locked and can not be replied to.