I take it you wrote the program in question and have the source code for it. Depending on what it does, I reckon you could turn it into a CGI program and call it directly from your html.