Tux

...making Linux just a little more fun!

Talkback:115/okopnik.html

[ In reference to "Staying Connected" in LG#115 ]

Amit Kumar Saha [amitsaha.in at gmail.com]


Fri, 2 Nov 2007 23:23:43 +0530

Hi Ben,

The google.pl is really nice utility script, I modified it to use Mozilla Firefox

#!/usr/bin/perl -w
# Created by Ben Okopnik on Tue Feb 12 07:03:34 CST 2002
$browser = "/usr/bin/mozilla-firefox";
 
exec $browser, "http://www.google.com/advanced_search" unless @ARGV;
 
for ( @ARGV ){ s/.*/%22$&%22/ if y/ /+/; $s .= $s?"+$_":"$_"; }
 
# $ENV{LANG} = "en_US.UTF8";
exec $browser, "http://www.google.com/search?num=30&hl=en&as_qdr=all&q=$s&btnG=Google+Search"
Thanks, Amit

-- 
Amit Kumar Saha
*NetBeans Community Docs
Contribution Coordinator*
me blogs@ http://amitksaha.blogspot.com
URL:http://amitsaha.in.googlepages.com

Top    Back


Ben Okopnik [ben at linuxgazette.net]


Fri, 2 Nov 2007 22:12:09 -0400

On Fri, Nov 02, 2007 at 11:23:43PM +0530, Amit Kumar Saha wrote:

> Hi Ben,
> 
> The google.pl is really nice utility script, I modified it to use
> Mozilla Firefox

That was the point of having a "$browser" variable. Otherwise, I'd have hard-coded it. :)

-- 
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *

Top    Back


Amit Kumar Saha [amitsaha.in at gmail.com]


Sat, 3 Nov 2007 21:37:37 +0530

On 11/3/07, Ben Okopnik <[email protected]> wrote:

> On Fri, Nov 02, 2007 at 11:23:43PM +0530, Amit Kumar Saha wrote:
> > Hi Ben,
> >
> > The google.pl is really nice utility script, I modified it to use
> > Mozilla Firefox
>
> That was the point of having a "$browser" variable. Otherwise, I'd have
> hard-coded it. :)

:-)

-- 
Amit Kumar Saha
*NetBeans Community Docs
Contribution Coordinator*
me blogs@ http://amitksaha.blogspot.com
URL:http://amitsaha.in.googlepages.com

Top    Back