Execute bash script from .rhtml file

Added by Alcnedlor Nuratar over 9 years ago


In a .rthml file I'm trying to create a "link" that will start an external program but I don't even know if this is possible :-)

I was able to launch a command like this :
<% value = %x( ls / ) %>
My Value = <%= value %>

But I want to trigger the event only when the user wants it.
So basically I would like to create a link/button that will execute my %x( ) command

Does anyone know how I could achieve this ?

Thank you for your help