Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: return code for plot command Followup-To: comp.graphics.apps.gnuplot Date: Mon, 14 Nov 2011 08:34:13 -0800 Organization: gnuplot development team Lines: 12 Message-ID: References: <1c96467a-0734-4046-ae77-18346c21fd3c@k10g2000yqn.googlegroups.com> Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Mon, 14 Nov 2011 16:34:14 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="3mhAfh4CeAIeL3OKnPexDA"; logging-data="3444"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Pm/hCc+oqqCQkqU86qEfO" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:zWpBQGn339jOQzFND2pUPsbGLmU= Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:684 ab wrote: > Hi, > > is there a possibility to stop the execution of a gnuplot script if a > plot fails or returns some warnings/errors ? > in shell programing one whould check the return code of a command. reset error ... do stuff ... if (GPVAL_ERRNO) exit gnuplot