If netscape/mozilla/phoenix is already running, clicking a link in my mail
client wanted to start a new instance of ns/moz/phoenix. If I told it to
open a url in a new tab, it would, but only if ns/moz/phoenix was running.
I guess you get the idea.

This little script will just test to see if the browser is running, and if
it isn't it starts it and loads the url; if the browser is already
running, it opens the url in a new tab.

In the mail client I just specify what to do with urls:
/path/to/script '%s'

The example here is just for phoenix, because that's what I use now.
Change it to reflect the path to your mozilla or netscape.

Todd

#/bin/bash

url="$@"

/home/todd/phoenix/phoenix -remote "ping()"

if [ $? = 0 ] ; then
        /home/todd/phoenix/phoenix -remote openURL"($url,new-tab)"
else
        /home/todd/phoenix/phoenix $url
fi
exit

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to