- 1 Manipulating Azure Storage Accounts Using Storage PowerShell cmdlets
- 2 HPE Enters Composable Infrastructure Space With Synergy
- 3 Vapor IO Brings OpenDCRE to General Availability
- 4 VMware Takes the Wraps Off vRealize Automation and vRealize Business
- 5 Microsoft Previews Hyper-V Containers for Windows Server 2016
Web Automation: Generating Dynamic Tables of Contents Page 5
You don't even have to run this as a CGI. You can run it from the command
line and output the results to an HTML file that you have in your webspace.
This allows you to periodically generate this table of contents file, without
having millions of users hammering your CGI. For example you could have
or any other scheduling service periodically execute the command
toc.pl > /usr/local/apache/htdocs/toc.html--which will rebuild your
table of contents. Pointing users to the
toc.html page might not
give them a real-time view of your webspace, but might be more feasible.
I'd also like to shamelessly plug Lincoln Stein's CGI.pm module, which is available on CPAN, and probably is already in your Perl distribution. I use this module to take a lot of the HTMLizing out of my hands. I wrote this example using no modules, so you could see what was going on, but I highly recommend using CGI.pm to do a lot of the HTML stuff for you.
Full Text of this Example