🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #147904

Re: [slrn] Tip for Firefox (Mozilla) Users

#147904
From: SINNER
Date: Sun, 09 May 2004 14:59
28 lines
2117 bytes
["Followup-To:" header set to alt.os.linux.]
* Keith wrote in alt.os.linux:

[..]

> #!/bin/bash
> #mozilla -remote 'openURL($1, new-tab)'
> #mozilla -remote openURL\($1,new-tab\)
> browserPath="/usr/local/mozilla/mozilla"
> #browserPath="/usr/bin/mozilla"
> url="$@"
> $browserPath -remote "ping()"
> # $? = false if running, true if not
> if [ $? = 0 ] ; then
>         exec $browserPath -remote openURL"($url,new-tab)"
> else
>         $browserPath $url &
> fi
> exit

Thanks, I posted my solution earler today. A bit smaller and possibly
less elegant but it works and its only 4 lines ;)

-- 
David     
party, n.:
	A gathering where you meet people who drink
	so much you can't even remember their names.
Technical Details
Message-ID: <59t1n1-dt1.ln1@news.gates_of_hell.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed3.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!news.gates_of_hell.com!news
References: <5qarm1-hk2.ln1@news.gates_of_hell.com> <2g6u3vF52j72U1@uni-berlin.de>

Show Full Headers
Complete Article Headers
Message-ID: <59t1n1-dt1.ln1@news.gates_of_hell.com>
Subject: Re: [slrn] Tip for Firefox (Mozilla) Users
Date: Sun, 09 May 2004 14:59:37 GMT
From: SINNER <99nesorjd@gates_of_hell.invalid>
References: <5qarm1-hk2.ln1@news.gates_of_hell.com> <2g6u3vF52j72U1@uni-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed3.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!news.gates_of_hell.com!news
Newsgroups: news.software.readers,alt.os.linux
Organization: Hell.org
Reply-To: 99nesorjd@gates_of_hell.invalid
Followup-To: alt.os.linux
X-Face: #sn6gF@jD*I3X;
 _)M5ymNQ1wG39y^'rxXRA5y-oi7.T/>P.P-40N\&-q'Mu+DWRSTF[}`Vtd85KnX\fe1~p-<(9U<zenv]u["swbx<^u;
 %a:ro>w=r"qdVdsY_@\.mDg9"ruPsYjX.Bi9M#gF-fG5=obWVG'>0W*w3RC
User-Agent: slrn/0.9.8.0 (Linux)
Lines: 28
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise
 we will be unable to process your complaint properly.