Changeset 1783 for trunk/gsdl/lib


Ignore:
Timestamp:
2000-12-12T11:51:57+13:00 (23 years ago)
Author:
sjboddie
Message:

Added a check to make sure perl is functional before using the collector

Location:
trunk/gsdl/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/gsdltools.cpp

    r1678 r1783  
    167167  return rv;
    168168}
     169
     170// attempts to work out if perl is functional
     171bool perl_ok () {
     172  int i = system ("perl -e exit(-10)");
     173  return (i == -10);
     174}
  • trunk/gsdl/lib/gsdltools.h

    r1678 r1783  
    7070int gsdl_call_perl (char *perl_cmd, ...);
    7171
     72// attempts to work out if perl is functional
     73bool perl_ok ();
    7274
    7375#endif
Note: See TracChangeset for help on using the changeset viewer.