Well, one way to do it would to use PHP...although the form itself would have to be submitted in order to work. You would use the functions exec() or system() to execute the command on the server. I ...
I am using Actiona, a Linux GUI automation tool that automates mouse clicks, keyboard actions, and file tasks to automate my Linux desktop.