Mailinglist Archive: opensuse-es (1800 mails)

< Previous Next >
FireBird Script

buscando por ahi [http://www.linuxquestions.org/questions/history/117193
] e encontrao este script, q es para q cuando ya tienes una sesion de
firebird abierta puedas abrir mas aciendo click en el script, en vez de
control+N, sin que te salga el profileManager ese. La e cambiado un poco
a mi gusto, bueno, yo os la paso por si os interesa:


________________________________________________________________________
#!/bin/bash

#script by Kent Le (double_deuce@xxxxxxxxxxx)
#written in October, 2003
# $1 == first argument
FBNUM=`ps -A | grep -c MozillaFirebird`
#really freaking ugly hack: counts number of already running instances
of firebird
FBDIR=/home/mz/Programas/MozillaFirebird/
#directory of Firebird directory; modify to your own

if [[ FBNUM -eq 0 ]]
#if no running instances
then
if [ -z $1 ]
#if no arguments
then
$FBDIR/MozillaFirebird &
else
$FBDIR/MozillaFirebird $1 &
fi
else
#otherwise, there is at least one instance of firebird running
if [ -z $1 ]
#if no arguments
then
$FBDIR/MozillaFirebird -remote "openurl(www.google.es,new-window)" &
#me carga www.google.es en la nueva ventana abierta
#open a new browser instance
else
$FBDIR/MozillaFirebird -remote "openurl($1)" &
#open the argument in a new tab
fi
fi

________________________________________________________________________

pd: imagino q cambiandola un poco tb se podra aplicar al mozilla, pero
no lo e probado.

--
/ \ -------------------------------------------------------------
/ \ | mz <miguel.zubiaga@xxxxxx>
| | | <fxzubiaga@xxxxxxxxxxxxxx>
the man | <billy9mm@xxxxxxxxxxx>
|---| |
the legend |Fundador de dSb <dARK Studios bILBAO>
| | |-->http://usuarios.lycos.es/maski/horrible%20day%20[low].WMV
\ / |
\ / -------------------------------------------------------------

< Previous Next >
This Thread
  • No further messages