Anything can be done. To do this, use 2 presentation templates.The first one just is a perl script that invokes the second one, gets the appropraite warnings and kicks off an email. I have stubbed out TPLs many times before, not tough.HTHAndy
To do what is being asked for, I believe you would need to replace the OOTB Preview and/or Generate menu items with a custom menu item CGI script.If you have the custom CGI, you can then run the desired commands, capture output, and then make that output visible in the CGI window associated with your custom command (as well as opening another window to display the resultant page).