Logo
Home
About Me
Blog New Blog RSS
Books Updated Book Gold Asterisk
Book Reviews
Professional Book Calendar Gold Asterisk
EFCS Book Calendar Chat
Being Geek Book Calendar Open Source
Simple n Usable Book Colors Gold Asterisk
Lazy Project Mgr Book Chat
Music
Pt. Ram Mate Marathi Music PDF
HCM Primer Music PDF
Raga Info Information Marathi Music
Ringtones Gold Asterisk Music
DevaGandharva Book Music
Stotras Gold Asterisk Marathi Music
Recitals New Gold Asterisk Music
Notation New Gold Asterisk Music
Quora Q and A New Gold Asterisk Music
Foto Feature
Udaipur India Sunflower Travel
Python
SERA Open Source Python
WERD Marathi Open Source
YaMA Popular Gold Asterisk Open Source
Handhelds
Almanac Updated Calendar Marathi Almanac
Pine and VIM
Colors Colors Light Open Source
URL Viewer Open Source
Perl
Timeline Script Open Source
Finance
EMI Calculator Popular Updated India
Me Says
Shivaji Popular Gold Asterisk PDF
Bonded Labour ? Chat
On the WWW Chat
Life's precious ! Chat Colors
Ekatech Lotus Marathi
Seeta Mai Lotus
Musical Interview Music
Oosa Marathi Sunflower
Kaakaskparsha Popular Marathi
Panshet Poor Popular Marathi
From the Collective
Pune Flood Fotos New Water
Career Tips Popular Calendar
More ...
Pics I Like
Ganesh Colors Marathi
Just Be Colors
Lotus Pond Lotus Nature
Etcetra
Word Power
Links


send me email

Visit my older blogs :

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

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.

Support Wikipedia

Advertise with us

Message in
Public Interest

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