Re: Can I run elinks without terminal

Simon Ruderich <[email protected]> Fri, 25 Mar 2011 14:32:50 +0100
Newsgroups gmane.comp.web.elinks.user
Message-ID <[email protected]>
On Fri, Mar 25, 2011 at 04:14:41PM +0800, Tian You wrote:
> Hi guys,
> I want to know can I run elinks without display the page, and exit after
> loading of the page is finished.

You could use -dump and redirect the output to /dev/null. But I'm
not sure if this requires a terminal or can be run from a script.

> What I want to do is to trace the URL redirection, no matter the redirection
> is implemented by using HTTP head, meta tag or javascript.

I'm not sure if Elinks' JavaScript support is sophisticated
enough for all kinds of redirection; HTTP and meta tags should
work fine.

> If the elinks can work as I described above, then I can get the URL list
> from the it's history file.

Hm, looks like the history file is not touched when using -dump.
Not sure if you can get Elinks to store it.

> Any comments on this?
>
> Thanks,
> Animal

I think a simpler way would be to use wget/curl (it handles HTTP
redirects) and a little script which searches for meta redirects
and tries to find JavaScript redirects.

Regards,
Simon
-- 
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9

_______________________________________________
elinks-users mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-users
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJNjJmCAAoJEJL+/bfkTDL5sXkP/A5z0vy+HYYquw9uxC1oF6td
x/cIAddJtKYKlcN56plWImIpSOdKRuSvOS9JBfkqSO9zdDDQJTTKKi6RDPa7O/dt
nnor/CqJTbaN5zpPb07GlYNNGwMCDh/yy4wtmgJXCHAeU8YIiCrq/Nqhiym5Y48D
anJY4jq3wvumZnJmziZ9681MRmaTtPcu70cY6/pMidmIKwRmZHhqqS0j5wghMsQL
og4h+EyJRTy3o/TC25rm9puRJgQgqCMjP4krzASy8lzkraezjgHoEkJ1WsQyQHNN
v05JGNYG4SqDunbUJ3ZKTEVG+xcRz1j0c5VRs2jUOTVbPyxGySEhvBYXH2Y50GWe
0bGjWKHeUwVDfUaIe0p0dbudVQC378bBOPEIp7SaKEE1UQhrVHMBpZrOd32wx+aG
SLOBwSMjNFP2FeRxFJgdheeJF6HHOFTVFTM38hUsEjPp1WEAJ+AhFlrDvU3nD1Hi
JbaU8DYZ1sYCFLp4hLCx+k9VYDDX/6UaPBlB4+ydGLcf9YivpA/IHRURSJg524Oh
DhZdHUUUXV82U8siCFEIGBZETHOosXqUv9ubcxghw8CHZPDLUhFh6I2mj3VcCrOb
JZ1ZRUe7S4m520nv3iuWy8d2EoThsCuqAsdCdgW7E3PLYWMZJmPklEp6jdpJ4a0h
bXHBq4IetZUGw5vcjFJr
=+pah
-----END PGP SIGNATURE-----