I have severeal ssi pages (.shtml) that I want to include in the cgi output of a script.
The CGI script is main.cgi and is calling the layout from a template called master.shtml, which contains the design of the site, and a !!INSERT!! text where I want the script to insert its output.

I've tried including SSI tags in master.shtml, but this doesn't work.

Is it possible to call SSI from a CGI script that calls another page?