//Tips tagged lynx
Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
The following bash script, which depends on lynx web browser, uses Google's reverse geocode service to find a nearby address given a latitude and longitude pair:

#!/bin/bash
# findnearest
# Usage: findnearest latitude longitude
# Ex.  findnearest  17.976227 -66.111016

lat=$1
long=$2
result=$(lynx -dump "http://maps.google.com/maps/geo?output=csv&oe=utf-8&ll=$lat,$long")
echo $result | cut -f3- -d,


View Comments »



If you have a series of actions that you perform with the command line web browser lynx, it is possible to record these and then run them all again later. This can be used to record downloading a file, logging in and checking details or pretty much anything else you can do in lynx.

To record your session do the following:

$ lynx -cmd_log logfilename

This will stop recording when you quit lynx. And then to play back those actions:

lynx -accept_all_cookies -cmd_script=/path/to/logfilename


View Comments »

The command below uses the debian device driver check and report service at http://kmuto.jp/debian/hcl/index.cgi to give a report on your PCI devices.

As it mentions on the site:
* This database uses the PCI map of Debian kernel 2.6.29-1-686.
* The result does NOT guarantee your hardware works perfectly.
* This database only verifies the PCI devices at this time. X drivers, ISA, USB, IEEE1394 or any other devices are out of the focus.

curl --silent -d "check=Check&lspci=$(lspci -n)" http://kmuto.jp/debian/hcl/index.cgi | \
sed -n '/<table>/,/<\/table>/ p' | lynx -stdin


View Comments »




Home Latest Browse Top 25 Random Hall Of Fame Contact Submit