WIthout reading the thread much (on mobile) exec lets you run a command on the server (as opposed to the client).
To do it as a link just pass a variable through. sanitise it though, to stop people running anything on your server.