Ignore:
Timestamp:
2001-02-23T16:51:33+13:00 (23 years ago)
Author:
jrm21
Message:

(system($cmd)>0) : system can return -1 if the cmd couldn't be

executed, as opposed to the cmd returning an error code. Changed > to !=

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/gsConvert.pl

    r2032 r2060  
    344344
    345345    # execute the command
    346     if (system($cmd)>0)
     346    if (system($cmd)!=0)
    347347    {
    348348    print STDERR "Error executing wv converter: $!. Continuing...\n";
     
    388388
    389389    # execute the command
    390     if (system($cmd)>0)
     390    if (system($cmd)!=0)
    391391    {
    392392    print STDERR "Error executing rtf converter: $!. Continuing...\n";
     
    455455    $cmd .= " 2> $output_filestem.err";
    456456   
    457     if (system($cmd)>0)
     457    if (system($cmd)!=0)
    458458    {
    459459    print STDERR "Error executing $cmd: $!\n";
Note: See TracChangeset for help on using the changeset viewer.