Home
About Me
Books
Music
Raga Information
Midis for Mobiles
Technophiles
Python
SERA
WERD
YaMA
Handhelds
Almanac
Pine and VIM
Colors
URL Viewer
Perl
Timeline Script
Finance
Readers Favorite EMI Calculator
Food for Thought
Me Says
Bonded Labour ?
On the WWW
Contemplative Life's precious !
Ekatech
Contemplative Seeta Mai
Musical Interview
From the Collective
Pune Flood Fotos
Contemplative Career Tips
More ...
Pics I Like
Ganesh
Just Be
Readers Favorite Ganesh Symbolism
Contemplative Lotus Pond
Etcetra
Word Power
Links


Mail Me

Visit my blogs :

Nature uses as little as possible of anything. -Johannes Kepler, astronomer (1571-1630)

Pine URL Viewer


I like to launch a browser from pine after I press on a link in the message viewer and let pine continue to allow me to read other email while the browser loads the URL in the background.

To that end, I found this stuff out there, and am re-producing my customised version here for convenience.

Create a text script somewhere, say $HOME/scripts/urlview, and put the following in it :



#!/bin/sh
# short script to invoke BROWSER from within pine as a background
# process, so pine can continue. Only arg is the URL.
# Author: Ed Arnold
# Modified by: Atul Nene
BROWSER="konsole -e lynx"
#BROWSER=/usr/bin/konqueror
#BROWSER=/usr/local/netscape/netscape
URL=`echo $1 | sed 's/,/%2C/g'`

#
# handle viewing HTML attachment or message files
#
ATTACH=`echo $URL | grep /tmp/img-HTM | wc -l`
if [ $ATTACH = 1 ]; then
cp $URL ${URL}.html
URL=${URL}.html
fi

$BROWSER "$URL" &


and modify these 2 settings in your .pinerc :



image-viewer=<$HOME>/scripts/urlview
url-viewers=<$HOME>/scripts/urlview



Note: Ensure to replace the <$HOME> with the actual path.

Google
Web
my site

www.atulnene.com ©1998-2007 Atul Nene
>-x))>