Passing arguments to os.execute()


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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs