#!/bin/sh #----------------------------------------------------------------------------- # /var/install/bin/firebird-tools-isql - Firebird SQL Server ISQL start # # Copyright (c) 2004 Jens Vehlhaber # # Creation: 2004-02-14 jv # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #----------------------------------------------------------------------------- #include eislib . /var/install/include/eislib export FIREBIRD='/usr/local/firebird' # check run firebird if [ -z "`ps -e | egrep '(fbserver|fbguard)' | grep -v grep `" ] then mecho "" mecho -error "Firebird is not running" mecho "" anykey exit 1 fi clrhome # show help file /var/install/bin/doc /usr/share/doc/firebird/isql.txt # read the ISC_PASSWORD only pw=`grep ISC_PASSWORD= ${FIREBIRD}/isc4.pw | sed "s/ISC_PASSWORD=//g"` i# Read DATA_DIRECTORY . /etc/config.d/firebird if [ "$FIREBIRD_DATA_DIRECTORY" = "${FIREBIRD}/examples" -o ! -d "${FIREBIRD}/examples" ] then sDir="$FIREBIRD_DATA_DIRECTORY" else sDir="$FIREBIRD_DATA_DIRECTORY,${FIREBIRD}/examples" fi # Run file-select tool ${FIREBIRD}/bin/filelist -s=$sDir -e=*.fdb,*.gdb -c -l=23 -r="${FIREBIRD}/bin/isql,-u,SYSDBA,-p,${pw},_FSP_/_FSE_" #----------------------------------------------------------------------------- exit 0