> > >#/bin/bash > > >browserPath="/usr/local/MozillaFirebird/MozillaFirebird" > > >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
This might work for you: It is what i used before Todd sent me his script way back. Since i don;t use thunderbird, it never mattered. if test "$(top -b -n 1 | grep -c MozillaFirebird)" = "0" ; then firebird $1 & else firebird -remote "openurl($1,new-tab)" & fi -- Mandrake HowTo's & More: http://twiki.mdklinuxfaq.org
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
