Ignore:
Timestamp:
2002-11-14T22:22:25+13:00 (21 years ago)
Author:
jrm21
Message:

allow use of -timeout (ulimit) for ps2ascii as some postscript files can
hang ghostscript.

File:
1 edited

Legend:

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

    r3400 r3538  
    7575
    7676my $faillogfile="";
     77my $timeout=0;
    7778
    7879sub main
    7980{
    8081    my (@ARGV) = @_;
    81     my ($input_type,$output_type,$verbose,$timeout);
    82 
    83     $timeout = 0;
     82    my ($input_type,$output_type,$verbose);
     83
    8484    # read command-line arguments
    8585    if (!parsargv::parse(\@ARGV,
     
    761761
    762762    } else {
    763     my $cmd = "gs -q -dNODISPLAY -dNOBIND -dWRITESYSTEMDICT -dSIMPLE -c save ";
     763    my $cmd = "";
     764    if ($timeout) {$cmd = "ulimit -t $timeout; ";}
     765    $cmd .= "gs -q -dNODISPLAY -dNOBIND -dWRITESYSTEMDICT -dSIMPLE -c save ";
    764766    $cmd .= "-f ps2ascii.ps \"$input_filename\" -c quit > \"$output_filestem.text\"";
    765767    $cmd .= " 2> $output_filestem.err";
Note: See TracChangeset for help on using the changeset viewer.