greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 17757

Show
Ignore:
Timestamp:
2008-11-06 15:51:46 (2 months 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:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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) {