VMS Perl-ers: VMS 7.3-1, Perl 5.6.1 (from Craig's prebuilt), ANALOG 5.3. CSWS 1.3.
I'm trying to use the ANALOG package to analyze my web log files. I've put together a Perl script that searches the logfile directory to find and display the monthly logs for the last five years, then writes out a form which includes a user-selected logfile name as a hidden field for ANLGFORM.PL to pass to ANALOG. ANLGFORM has apparently been tested on Unix and Windows, not VMS. ANLGFORM opens a pipe to the ANALOG process and expects to capture the output and return that to the webserver to return to the browser. open (ANALOG, "|$analog +g-"); # errors here will get caught on close ($analog contains the location of the ANALOG executable). ANLGFORM then writes the rest of the command information as name-value pairs to the pipe. What seems to be happening, judging by the output logs, is that ANALOG starts running as soon as it's opened and ignores the other stuff that comes down the pipe, and ANLGFORM doesn't retrieve any error message or output that comes through the pipe. Does this kind of thing work on VMS? Can you bring up a process to listen on the other end of a pipe and have bidirectional communication with it? Does anybody have this working? (All else failing, I can rewrite the ANALOG.COM that came with OSU to work with the form in question; it doesn't use pipes at all, instead executing the program directly and feeding it the name-value pairs on SYS$INPUT.) Thanks, -- Alan =============================================================================== Alan Winston --- [EMAIL PROTECTED] Disclaimer: I speak only for myself, not SLAC or SSRL Phone: 650/926-3056 Paper mail to: SSRL -- SLAC BIN 99, 2575 Sand Hill Rd, Menlo Park CA 94025 ===============================================================================