...making Linux just a little more fun!
[ In reference to "Staying Connected" in LG#115 ]
Amit Kumar Saha [amitsaha.in at gmail.com]
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
Ben Okopnik [ben at linuxgazette.net]
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 *
Amit Kumar Saha [amitsaha.in at gmail.com]
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