[eside-ghost] Firebird Script

mz miguel.zubiaga en gmx.de
Lun Feb 2 14:42:56 CET 2004


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 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 en hotmail.com)
#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)" &
      #open a new browser instance
  else
    $FBDIR/MozillaFirebird -remote "openurl($1)" &
      #open the argument in a new tab
  fi
fi

________________________________________________________________________



-- 
 ----------------------------------------------------------------------
|    ___   _______   ___      |  dSb <dARK Studios bILBAO>
|   \   | |  _____| |   /     |     filmografia:
|    \  | | |       |  /      |         horrible day
|     \ | | ------  | /       |         sketches examen oral 
|  ---- |  -----  | | ----    |         dresna renales
| |  /\ |  _____| | | /\  |   |         horrible day 2
| |  \/ | |       | | \/  |   | 
|  -----   -------   -----    |  trailers HD2 en - www.maski.net
 ----------------------------------------------------------------------
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://ssl.deusto.es/pipermail/eside-ghost/attachments/20040202/5bac9ed2/attachment.html