Menu

#60 exit status code =0 in spite of ghostscript error

open
nobody
None
5
2015-03-18
2015-03-18
Uli
No

Using GLE 4.2.4c with Ghostscript 9.10 on Ubuntu 14.04

In some cases GLE returns with exit status code = 0 even though the ghostscript process failed and terminated with exit code 1.
To reproduce this behaviour execute the following .gle file (see attached files):
gle -d pdf ghostscriptErrorWithGleCode0.gle
then look at the exit code with
echo $?

I also included an example which returns the correct exit status code. This example requires the file emptyFile.dat:
gle -d pdf ghostscriptErrorWithGleCode1.gle

3 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB