Changeset 17757

Show
Ignore:
Timestamp:
06.11.2008 15:51:46 (11 years ago)
Author:
ak19
Message:

The output for testing for perl on Linux/Mac (prior to converting txtgz to the database file) goes to stdout and ruins the page generated by the browser. Now using redirection of STDOUT to STDIN, it works on Linux. Need to test on Windows (and Mac?).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/common-src/src/lib/gdbmclass.cpp

    r17719 r17757  
    109109 
    110110    // Test to make sure Perl is on the path 
    111     text_t cmd_test = "perl -v"; 
     111    // On Linux, the output of the test goes to STDOUT so redirect it to STDERR 
     112    text_t cmd_test = "perl -v 1>&2"; 
    112113    int rv_test = gsdl_system(cmd_test, true, cerr); 
    113114    if (rv_test != 0) {