On Tue, 12 Aug 2008, Frank McCown wrote:
Hello,
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 http://www.harding.edu/ ; 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:
print_help_and_exit(-1)
outofmem(-1)
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
http://invisible-island.net
ftp://invisible-island.net
_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev