Aengus Lawlor
Thu, 21 Oct 1999 15:25:59 -0700
Thanks, Jeremy - I was confused by your reference in an earlier message to your previous post dealing with CGI. I hadn't fully integrated the mention of CGI ON in the new docs, and when I read the perl script before I sent my note, I saw that it was just calling ANALOG and creating a config file "on the fly" (ANALOG +g-) but it didn't strike me that this meant I could call analog.exe directly, if I put it in the CGI directory. So anlgform.pl allows me to use analog.exe from a form, without making analog.exe available on a URL, because there might still be security issues around that. The documentation says of CGI ON that "You can't choose any options that way though". This isn't my experience. I just typed in the following URL http://<server>/analog/analog.exe?c:\logs\jun.log+c:\logs\jul.log+%2bC"H OSTNAME+Test"+%2bO-+%2bC"CGI%20ON" and got a report for the two logs specified, and with the specified hostname. (This even works with CGI OFF in ANALOG.CFG. In fact, ANALOG.CFG seems to be ignored - this command works even if there is no ANALOG.CFG file). This means that I can very easily create an ASP form to call Analog, rather than use the perl script, (by redirecting to analog with the appropriate parameters in the command line, though there may be command line lenght limitations), but raises some security concerns (I'm only dealing with an Intranet here, so security isn't a major concern, but it may be an issue for others). The short answer for Jeff Longland is that adding CGI ON OUTFILE stdout to his ANALOG.CFG should do what he wants. Just don't let your ISP find out :-) Aengus ______________________________ Reply Separator _________________________________ Subject: Re: [analog-help] CGI Error on NT IIS 4 Author: [EMAIL PROTECTED] at Internet Date: 10/21/99 8:33 AM I stand corrected. Thanks for the clarification, Stepehn. Also, here's the link to that binary, since that email never seemed to show up. > For Aengus and anyone else trying the new beta on a Win32 system: > > I've posted an executable version of the form interface at > http://www.wadsack-allen.com/digitalgroup/anlgform.zip (753k) > Given the size, it probably won't make sense to bundle this with the Win32 > binary package of 4.0 so I'm happy to continue hosting it there. > > To use this you MUST have the form interface in the same directory as the > analog.exe. (Or more precisely, it expects to find analog.exe in the > directory it resides in. This is the same problem that the last version had, > though that was c:\analog\, but this may be something that can be worked > around before release.) > Stephen Turner wrote: > On Wed, 20 Oct 1999, Jeremy Wadsack wrote: > > > > Somewhat unorthodox and not recommended. Analog.exe is NOT a CGI program and > > will not behave right. > > You're a little out-of-date, Jeremy. In 3.9 you can make it work by > including the command CGI ON. Then it will return the correct CGI headers. > (Having said which, using the official Perl script is still much better). > > -- > Stephen Turner [EMAIL PROTECTED] http://www.statslab.cam.ac.uk/~sret1/ > Statistical Laboratory, 16 Mill Lane, Cambridge CB2 1SB, England > "Due to the conflict in Kosovo, we will not be showing the movie Wag the > Dog. Instead, we will show Mortal Kombat: Annihilation." Cable & Wireless > > ------------------------------------------------------------------------ > This is the analog-help mailing list. To unsubscribe from this > mailing list, send mail to [EMAIL PROTECTED] > with "unsubscribe analog-help" in the main BODY OF THE MESSAGE. > List archived at http://www.mail-archive.com/analog-help@lists.isite.net/ > ------------------------------------------------------------------------ -- Jeremy Wadsack Wadsack-Allen Publishing ------------------------------------------------------------------------ This is the analog-help mailing list. To unsubscribe from this mailing list, send mail to [EMAIL PROTECTED] with "unsubscribe analog-help" in the main BODY OF THE MESSAGE. List archived at http://www.mail-archive.com/analog-help@lists.isite.net/ ------------------------------------------------------------------------ ------------------------------------------------------------------------ This is the analog-help mailing list. To unsubscribe from this mailing list, send mail to [EMAIL PROTECTED] with "unsubscribe analog-help" in the main BODY OF THE MESSAGE. List archived at http://www.mail-archive.com/analog-help@lists.isite.net/ ------------------------------------------------------------------------