Your question is quite vague. I can't give you a specific response. Maybe someone else sees more in the question than I do.<br>A piece of CGI is just like any other piece of PERL. If you want to call another program, just do it. See "<b>backticks", "system", and "exec</b>"ute funtions via<br>perldoc or on the web or in a book. <br>Or, ask here again with a little more detail.....like what is the second piece of code doing? Is it printing to the same client browser? Is it doing house keeping on the server? or What? Note that there are significant differences in how you use backticks and the system and exec functions. Be aware that making system calls of any sort in CGI stuff can create serious security issues (read problems).