Hello,
Although I am using elinks for a particular purpose and nothing else, I would
like to get this to work. The script works fine, it just that I can't get that
past that elinks config directory problem.
I do have my variable exported in my .profile. Plus, I did try to use the
-config-dir option. In my configuration (along with other stuff), I have
--prefix=/opt/tribily/bin/elinks \
-config-dir=/opt/tribily/bin/elinks \
But I get the error: configure: error: unrecognized option:
-config-dir=/opt/tribily/bin/elinks
Try `./configure --help' for more information.
And when I run the ./configure --help, there is no information about the
-config-dir option. How do I set up that option? I would like to be in a
position where I can use either the wget command or use elinks.
Thanks for your help
-Original Message-
From: elinks-users-boun...@linuxfromscratch.org
[mailto:elinks-users-boun...@linuxfromscratch.org] On Behalf Of Fabienne
Ducroquet
Sent: Friday, July 13, 2012 8:09 PM
To: ELinks text WWW browser users mailing list
Subject: Re: [elinks-users] elinks.conf file
Le vendredi 13 juillet 2012, Gray, Steve, Wipro a écrit :
Hello,
Hi,
In my .profile I have the variable ELINKS_CONFDIR set.
ELINKS_CONFDIR=/opt/tribily/bin/elinks.
Is the variable exported to the environment (with export ELINKS_CONFDIR
or export ELINKS_CONFDIR=/opt/tribily/bin/elinks to do everything in one
time)? Otherwise it can’t be read from your script.
You could also use the -config-dir option of elinks if you don’t need
ELINKS_CONFDIR for anything else.
The /opt/tribily/bin/elinks/elinks.conf file has permissions of 777.
666 should suffice since it’s not supposed to be executed anyway (or even
644 for more safety, it is not saved automatically by ELinks so you only need
to be able to read it), but you should check the permissions of the
/opt/tribily/bin/elinks directory.
I am using elinks in a script that will monitor nginx, i.e.
/opt/tribily/bin/elinks/src/elinks -source http://$HOST:$PORT/nginx_status;
| grep 'Reading' | awk '{print $2}'
If you only want to do that, you can do it with wget, with something like:
wget --quiet --output-document=- http://$HOST:$PORT/nginx_status; | grep
'Reading' | awk '{print $2}'
Well, the command line is not really simpler, but wget only retrieves files,
while ELinks has a lot of other features that you are not using anyway.
Regards
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users