Download: http://archive.info-mac.org/inet/web/cg ... 03-cgi.hqx
written by Steve Maller
[email protected]
http://www.maller.com/
I run a Macintosh with a MacHTTP web server and an Apple Internet Mail
Server in my office, and there are times I'd just like to peek at the Mac's
screen. However, I don't like waiting for that machine's monitor to warm
up. Even worse, I recently had to borrow that machine's monitor for another
machine. My solution?
I wrote this CGI application in CodeWarrior C that takes a screenshot of
the current Macintosh screen, converts it to a GIF image, and returns it to
your Web browser.
I used Grant Neufeld's excellent framework (Grant's CGI Framework 1.0b10).
Some notes about the current version (version 0.3)
* This version returns only a GIF image. Thanks to Eric A. Perlman
([email protected]) for the suggestion (and the instructions!).
* This version is once again a fat binary. It's been tested on quite a few
Power Macintosh models and it works just fine. I think I've figured out the
problems (thanks to some help out there!).
* The program is hard-coded to generate a 256-color, 640*480 GIF image. If
your display's something other than that, it'll try to dither the image for
the best possible quality.
