[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] lynx return values

From: Thomas Dickey
Subject: Re: [Lynx-dev] lynx return values
Date: Wed, 13 Aug 2008 08:56:46 -0400 (EDT)

On Tue, 12 Aug 2008, Frank McCown wrote:


I was wondering if there is some documentation somewhere that
specifies what the various return values are for lynx.  For example,
when I execute

lynx -dump ; echo $?

it says the return value is 0.  I've been executing lynx from a php
script and getting a return value of 2.  I really need to know why I'm
getting back a 2, but I can't find where this is documented.

I'm not certain: most of the exit codes are 0 (EXIT_SUCCESS) or 1 (EXIT_FAILURE). There are a few stray cases, which do not appear to apply:


There's a case for subprocess in the NSL_FORK which could return a 2, but I don't believe that would come up to the shell.

Executing from a script sounds as if your environment variables may be missing $TERM or something like that - but a quick check here doesn't produce an error unsetting that.

Thomas E. Dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]