POV-Ray : Newsgroups : povray.bugreports : Bad return code in linux Server Time
22 Dec 2024 12:32:32 EST (-0500)
  Bad return code in linux (Message 1 to 1 of 1)  
From: hgonzalez
Subject: Bad return code in linux
Date: 15 Oct 2012 22:15:00
Message: <web.507cc2998a82380539a01a360@news.povray.org>
(Already posted as question in unix newsgroup, with no answer)

From the (gral) docs:  "POV-Ray itself returns such codes. It returns 0 for
success, 1 for fatal error and 2 for user abort."

I've compiled povray 3.6, in Linux, and i don't see that behavior:

It indeed returns error code if the command line is wrong...

$ povray sdasdsadasdsadasdsa
povray: cannot open the user configuration file
.....
$ echo $?
248

But it does not for other (fatal) errors, as when the file is not found:

$ povray +Iblablabla
povray: cannot open the user configuration file
....
Scene File Parser Initialization Error: Cannot open input file.
....
$ echo $?
0


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.